Fixed the Gaia Guardian being able to ride minecarts.

This commit is contained in:
Vasco Lavos committed 2015-10-25 12:04:18 +00:00
1 parent 89bc3e0fc9
commit 886c9bcca1
1 file changed
+6
@@ -468,6 +468,12 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBossWi
@Override
public void onLivingUpdate() {
super.onLivingUpdate();
if(ridingEntity != null) {
if(ridingEntity.riddenByEntity != null)
ridingEntity.riddenByEntity = null;
ridingEntity = null;
}
boolean peaceful = worldObj.difficultySetting == EnumDifficulty.PEACEFUL;
if(!worldObj.isRemote && peaceful)