mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 11:36:43 +01:00
Reverse the burn check! Changelings disguised as mobs will burn in daylight if their mob does.
This commit is contained in:
parent
ea2febfe4f
commit
5502084b18
1 changed files with 7 additions and 3 deletions
|
@ -264,12 +264,16 @@ public class SpellDisguise extends AbstractSpell implements IAttachedEffect, ISu
|
|||
((EntityTameable)to).setSitting(from.isSneaking());
|
||||
}
|
||||
|
||||
if (from.isBurning()) {
|
||||
to.setFire(1);
|
||||
} else {
|
||||
if (from instanceof EntityPlayer && ((EntityPlayer)from).isCreative()) {
|
||||
to.extinguish();
|
||||
}
|
||||
|
||||
if (to.isBurning()) {
|
||||
from.setFire(1);
|
||||
} else {
|
||||
from.extinguish();
|
||||
}
|
||||
|
||||
to.setSneaking(from.isSneaking());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue