Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GlStateManager.pushMatrix();
- {
- worldRenderer.func_181668_a(GL11.GL_LINES, DefaultVertexFormats.field_181706_f);
- synchronized (TileEntityRedstoneInterface.interfaces)
- {
- for (TileEntityRedstoneInterface redstoneInterface : TileEntityRedstoneInterface.interfaces)
- {
- if (!redstoneInterface.isInvalid())
- {
- BlockPos position = redstoneInterface.getPos();
- BlockPos target = redstoneInterface.getTarget();
- if (position.distanceSq(player.getPosition()) < 225)
- {
- if (target != null)
- {
- if (redstoneInterface.getWorld().isRemote)
- {
- worldRenderer.putPosition(target.getX() + 0.5 - playerX, target.getY() + 0.5 - playerY, target.getZ() + 0.5 - playerZ);
- worldRenderer.putColorRGB_F(1F / 255F * 255, 0, 0, 255);
- worldRenderer.putPosition(position.getX() + 0.5 - playerX, position.getY() + 0.5 - playerY, position.getZ() + 0.5 - playerZ);
- worldRenderer.putColorRGB_F(1F / 255F * 255, 0, 0, 255);
- }
- }
- }
- }
- }
- }
- tessellator.draw();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement