Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-2405: Better event for combust due to fire
Dieser Commit ist enthalten in:
Ursprung
fb568fdc70
Commit
71cd505d45
@ -204,7 +204,7 @@
|
||||
- if (this.fireTicks == 0) {
|
||||
+ // CraftBukkit start - Not on fire yet
|
||||
+ 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);
|
||||
+
|
||||
+ if (!event.isCancelled()) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren