From 14f86046a0a88a69560f4604c17b57ea4ccd06c5 Mon Sep 17 00:00:00 2001 From: Mary <33456283+FourIsTheNumber@users.noreply.github.com> Date: Fri, 25 Oct 2024 17:22:37 -0400 Subject: Render fixes (#3409) Co-authored-by: Martin Robertz --- .../java/gregtech/common/tileentities/render/TileEntityLaser.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java/gregtech/common/tileentities/render') diff --git a/src/main/java/gregtech/common/tileentities/render/TileEntityLaser.java b/src/main/java/gregtech/common/tileentities/render/TileEntityLaser.java index dfbb771785..49ef60c71c 100644 --- a/src/main/java/gregtech/common/tileentities/render/TileEntityLaser.java +++ b/src/main/java/gregtech/common/tileentities/render/TileEntityLaser.java @@ -32,6 +32,7 @@ public class TileEntityLaser extends TileEntity { compound.setDouble("rotAxisY", rotAxisY); compound.setDouble("rotAxisZ", rotAxisZ); compound.setDouble("rotationAngle", rotationAngle); + compound.setBoolean("realism", realism); } @Override @@ -45,6 +46,7 @@ public class TileEntityLaser extends TileEntity { rotAxisY = compound.getDouble("rotAxisY"); rotAxisZ = compound.getDouble("rotAxisZ"); rotationAngle = compound.getDouble("rotationAngle"); + realism = compound.getBoolean("realism"); } public void setColors(float red, float green, float blue) { @@ -105,6 +107,11 @@ public class TileEntityLaser extends TileEntity { worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); } + public void toggleRealism() { + realism = !realism; + worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); + } + public Boolean getShouldRender() { return shouldRender; } -- cgit