diff options
author | Glease <4586901+Glease@users.noreply.github.com> | 2021-06-27 01:15:34 +0800 |
---|---|---|
committer | Glease <4586901+Glease@users.noreply.github.com> | 2021-07-30 14:39:40 +0800 |
commit | 8f5a4afac46140c9b93a0161feccd0b5a2eca07e (patch) | |
tree | be4dd9cecb15fc2d26d101fd98afaf8b034adde2 /src/main/java/gregtech/common | |
parent | 580a6a0c09844941fc74ed4cc867a78ae70cb257 (diff) | |
download | GT5-Unofficial-8f5a4afac46140c9b93a0161feccd0b5a2eca07e.tar.gz GT5-Unofficial-8f5a4afac46140c9b93a0161feccd0b5a2eca07e.tar.bz2 GT5-Unofficial-8f5a4afac46140c9b93a0161feccd0b5a2eca07e.zip |
remove debug code
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/common')
-rw-r--r-- | src/main/java/gregtech/common/GT_Client.java | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/main/java/gregtech/common/GT_Client.java b/src/main/java/gregtech/common/GT_Client.java index 674719eab5..eeaf5a96ff 100644 --- a/src/main/java/gregtech/common/GT_Client.java +++ b/src/main/java/gregtech/common/GT_Client.java @@ -569,21 +569,8 @@ public class GT_Client extends GT_Proxy Block aBlock = aEvent.player.worldObj.getBlock(aEvent.target.blockX, aEvent.target.blockY, aEvent.target.blockZ); TileEntity aTileEntity = aEvent.player.worldObj.getTileEntity(aEvent.target.blockX, aEvent.target.blockY, aEvent.target.blockZ); - if (aBlock == Blocks.glass) { - GL11.glPushMatrix(); - GL11.glTranslated(-(aEvent.player.lastTickPosX + (aEvent.player.posX - aEvent.player.lastTickPosX) * (double) aEvent.partialTicks), -(aEvent.player.lastTickPosY + (aEvent.player.posY - aEvent.player.lastTickPosY) * (double) aEvent.partialTicks), -(aEvent.player.lastTickPosZ + (aEvent.player.posZ - aEvent.player.lastTickPosZ) * (double) aEvent.partialTicks)); - GL11.glTranslated((float) aEvent.target.blockX + 0.5F, (float) aEvent.target.blockY + 0.5F, (float) aEvent.target.blockZ + 0.5F); - int tSideHit = aEvent.target.sideHit; - Rotation.sideRotations[tSideHit].glApply(); - // draw grid - GL11.glTranslated(0.0D, -0.501D, 0.0D); - GL11.glLineWidth(2.0F); - GL11.glColor4f(0.0F, 0.0F, 0.0F, 0.5F); - drawRotationMarker(ROTATION_MARKER_TRANSFORM_CENTER); - GL11.glPopMatrix(); - } - - if (GT_Utility.isStackInList(aEvent.currentItem, GregTech_API.sWrenchList)) { + if (GT_Utility.isStackInList(aEvent.currentItem, GregTech_API.sWrenchList)) + { if (aTileEntity instanceof ITurnable || ROTATABLE_VANILLA_BLOCKS.contains(aBlock) || aTileEntity instanceof IWrenchable) drawGrid(aEvent, false, true, aEvent.player.isSneaking()); return; |