mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 03:05:52 -07:00
Made Snowmen use a DamageCause MELTING for melting in hot biomes. Addresses BUKKIT-1244
This commit is contained in:
@@ -45,7 +45,7 @@ public class EntitySnowman extends EntityGolem {
|
|||||||
int j = MathHelper.floor(this.locZ);
|
int j = MathHelper.floor(this.locZ);
|
||||||
|
|
||||||
if (this.world.getBiome(i, j).i() > 1.0F) {
|
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);
|
this.world.getServer().getPluginManager().callEvent(event);
|
||||||
|
|
||||||
if (!event.isCancelled()) {
|
if (!event.isCancelled()) {
|
||||||
|
Reference in New Issue
Block a user