13
0
geforkt von Mirrors/Paper

Made Snowmen use a DamageCause MELTING for melting in hot biomes. Addresses BUKKIT-1244

Dieser Commit ist enthalten in:
EvilSeph 2012-03-22 17:33:33 -04:00
Ursprung f6bcaa6b0a
Commit ccbb4b479a

Datei anzeigen

@ -45,7 +45,7 @@ public class EntitySnowman extends EntityGolem {
int j = MathHelper.floor(this.locZ);
if (this.world.getBiome(i, j).i() > 1.0F) {
EntityDamageEvent event = new EntityDamageEvent(this.getBukkitEntity(), EntityDamageEvent.DamageCause.FIRE_TICK, 1);
EntityDamageEvent event = new EntityDamageEvent(this.getBukkitEntity(), EntityDamageEvent.DamageCause.MELTING, 1);
this.world.getServer().getPluginManager().callEvent(event);
if (!event.isCancelled()) {