mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Fixed the Gaia Guardian being able to ride minecarts.
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user