Reverse the burn check! Changelings disguised as mobs will burn in daylight if their mob does.

This commit is contained in:
Sollace 2019-02-23 16:03:57 +02:00
parent ea2febfe4f
commit 5502084b18

View file

@ -264,12 +264,16 @@ public class SpellDisguise extends AbstractSpell implements IAttachedEffect, ISu
((EntityTameable)to).setSitting(from.isSneaking()); ((EntityTameable)to).setSitting(from.isSneaking());
} }
if (from.isBurning()) { if (from instanceof EntityPlayer && ((EntityPlayer)from).isCreative()) {
to.setFire(1);
} else {
to.extinguish(); to.extinguish();
} }
if (to.isBurning()) {
from.setFire(1);
} else {
from.extinguish();
}
to.setSneaking(from.isSneaking()); to.setSneaking(from.isSneaking());
} }