Fix a bunch of duplicate EntityCombustEvent calls

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2019-01-11 11:41:32 +11:00
parent ab7419bd7d
commit d8f2a7e7cc
6 changed files with 7 additions and 7 deletions

View File

@@ -39,7 +39,7 @@
+ EntityCombustByEntityEvent combustEvent = new EntityCombustByEntityEvent(this.getBukkitEntity(), entity.getBukkitEntity(), 5);
+ org.bukkit.Bukkit.getPluginManager().callEvent(combustEvent);
+ if (!combustEvent.isCancelled()) {
+ entity.setOnFire(combustEvent.getDuration());
+ entity.setOnFire(combustEvent.getDuration(), false);
+ }
+ // CraftBukkit end
}