mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 15:30:19 +01:00
SPIGOT-5190: Superfluous EntityCombustEvent called when using fire aspect sword
This commit is contained in:
parent
9c887d4d80
commit
8b09d98319
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…
Reference in a new issue