From 0b9ee3e95a75796bc9d5d87fc1cb23a8010eab0e Mon Sep 17 00:00:00 2001 From: Technus Date: Mon, 21 Nov 2016 17:22:05 +0100 Subject: [PATCH] credit --- src/main/java/gregtech/api/util/GT_Utility.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/gregtech/api/util/GT_Utility.java b/src/main/java/gregtech/api/util/GT_Utility.java index bf55fccb..5b065a4b 100644 --- a/src/main/java/gregtech/api/util/GT_Utility.java +++ b/src/main/java/gregtech/api/util/GT_Utility.java @@ -1464,6 +1464,8 @@ public class GT_Utility { } public static boolean moveEntityToDimensionAtCoords(Entity entity, int aDimension, double aX, double aY, double aZ) { + //Credit goes to BrandonCore Author :!: + if (entity == null || entity.worldObj.isRemote) return false; if (entity.ridingEntity != null) entity.mountEntity(null); if (entity.riddenByEntity != null) entity.riddenByEntity.mountEntity(null);