diff options
author | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2018-08-21 02:56:37 +0200 |
---|---|---|
committer | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2018-08-21 02:56:37 +0200 |
commit | ec4626d71772d1a44a48ab3c406f81e9203a78d5 (patch) | |
tree | 1d27879eff3080164c22a6be2cff3a57dd92fc44 /src/main/java/gregtech/api | |
parent | 0e1f3bb153dc1c572dc71952a156d01cba13a7f0 (diff) | |
download | GT5-Unofficial-ec4626d71772d1a44a48ab3c406f81e9203a78d5.tar.gz GT5-Unofficial-ec4626d71772d1a44a48ab3c406f81e9203a78d5.tar.bz2 GT5-Unofficial-ec4626d71772d1a44a48ab3c406f81e9203a78d5.zip |
fixed GT Teleporter
+ improofed readability a bit (in dependencies in GT_Mod & GT_MetaTileEntity_Teleporter)
- removed unused libs
Diffstat (limited to 'src/main/java/gregtech/api')
-rw-r--r-- | src/main/java/gregtech/api/util/GT_Utility.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/gregtech/api/util/GT_Utility.java b/src/main/java/gregtech/api/util/GT_Utility.java index fa4e4accd2..daa02d8b85 100644 --- a/src/main/java/gregtech/api/util/GT_Utility.java +++ b/src/main/java/gregtech/api/util/GT_Utility.java @@ -1539,7 +1539,7 @@ public class GT_Utility { startWorld.onEntityRemoved(entity); } - entity.setLocationAndAngles(aX, aY, aY, entity.rotationYaw, entity.rotationPitch); + entity.setLocationAndAngles(aX, aY, aZ, entity.rotationYaw, entity.rotationPitch); ((WorldServer) destinationWorld).theChunkProviderServer.loadChunk((int) aX >> 4, (int) aZ >> 4); @@ -1560,17 +1560,17 @@ public class GT_Utility { destinationWorld.spawnEntityInWorld(entity); entity.setWorld(destinationWorld); } - entity.setLocationAndAngles(aX, aY, aY, entity.rotationYaw, entity.rotationPitch); + entity.setLocationAndAngles(aX, aY, aZ, entity.rotationYaw, entity.rotationPitch); destinationWorld.updateEntityWithOptionalForce(entity, false); - entity.setLocationAndAngles(aX, aY, aY, entity.rotationYaw, entity.rotationPitch); + entity.setLocationAndAngles(aX, aY, aZ, entity.rotationYaw, entity.rotationPitch); if ((entity instanceof EntityPlayerMP)) { EntityPlayerMP player = (EntityPlayerMP) entity; if (interDimensional) { player.mcServer.getConfigurationManager().func_72375_a(player, (WorldServer) destinationWorld); } - player.playerNetServerHandler.setPlayerLocation(aX, aY, aY, player.rotationYaw, player.rotationPitch); + player.playerNetServerHandler.setPlayerLocation(aX, aY, aZ, player.rotationYaw, player.rotationPitch); } destinationWorld.updateEntityWithOptionalForce(entity, false); @@ -1588,7 +1588,7 @@ public class GT_Utility { player.playerNetServerHandler.sendPacket(new S1FPacketSetExperience(player.experience, player.experienceTotal, player.experienceLevel)); FMLCommonHandler.instance().firePlayerChangedDimensionEvent(player, startWorld.provider.dimensionId, destinationWorld.provider.dimensionId); } - entity.setLocationAndAngles(aX, aY, aY, entity.rotationYaw, entity.rotationPitch); + entity.setLocationAndAngles(aX, aY, aZ, entity.rotationYaw, entity.rotationPitch); destinationWorld.theProfiler.endSection(); entity.fallDistance = 0; |