mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-19 05:31:32 +01:00
SPIGOT-5190: Superfluous EntityCombustEvent called when using fire aspect sword
By: md_5 <git@md-5.net>
This commit is contained in:
parent
2e2062c8a6
commit
8eb196964d
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@
|
||||||
+ org.bukkit.Bukkit.getPluginManager().callEvent(combustEvent);
|
+ org.bukkit.Bukkit.getPluginManager().callEvent(combustEvent);
|
||||||
+
|
+
|
||||||
+ if (!combustEvent.isCancelled()) {
|
+ if (!combustEvent.isCancelled()) {
|
||||||
+ entity.setOnFire(combustEvent.getDuration());
|
+ entity.setOnFire(combustEvent.getDuration(), false);
|
||||||
+ }
|
+ }
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue