mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
SPIGOT-2405: Better event for combust due to fire
This commit is contained in:
parent
fb568fdc70
commit
71cd505d45
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@
|
||||||
- if (this.fireTicks == 0) {
|
- if (this.fireTicks == 0) {
|
||||||
+ // CraftBukkit start - Not on fire yet
|
+ // CraftBukkit start - Not on fire yet
|
||||||
+ if (this.fireTicks <= 0) { // Only throw events on the first combust, otherwise it spams
|
+ if (this.fireTicks <= 0) { // Only throw events on the first combust, otherwise it spams
|
||||||
+ EntityCombustEvent event = new EntityCombustEvent(getBukkitEntity(), 8);
|
+ EntityCombustEvent event = new org.bukkit.event.entity.EntityCombustByBlockEvent(null, getBukkitEntity(), 8);
|
||||||
+ world.getServer().getPluginManager().callEvent(event);
|
+ world.getServer().getPluginManager().callEvent(event);
|
||||||
+
|
+
|
||||||
+ if (!event.isCancelled()) {
|
+ if (!event.isCancelled()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue