SPIGOT-5190: Superfluous EntityCombustEvent called when using fire aspect sword

This commit is contained in:
md_5 2019-07-21 11:45:05 +10:00
parent 9c887d4d80
commit 8b09d98319

View file

@ -290,7 +290,7 @@
+ org.bukkit.Bukkit.getPluginManager().callEvent(combustEvent);
+
+ if (!combustEvent.isCancelled()) {
+ entity.setOnFire(combustEvent.getDuration());
+ entity.setOnFire(combustEvent.getDuration(), false);
+ }
+ // CraftBukkit end
}