mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 05:32:18 -07:00
SPIGOT-5190: Superfluous EntityCombustEvent called when using fire aspect sword
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user