aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/tileentities/render/TileEntityLaser.java
diff options
context:
space:
mode:
authorMary <33456283+FourIsTheNumber@users.noreply.github.com>2024-10-25 17:22:37 -0400
committerGitHub <noreply@github.com>2024-10-25 21:22:37 +0000
commit14f86046a0a88a69560f4604c17b57ea4ccd06c5 (patch)
treea54a058e850a1c1943dd04909a1869b34405f100 /src/main/java/gregtech/common/tileentities/render/TileEntityLaser.java
parent24c9dea0a41226204d4c8f62214be57313c9e5cb (diff)
downloadGT5-Unofficial-14f86046a0a88a69560f4604c17b57ea4ccd06c5.tar.gz
GT5-Unofficial-14f86046a0a88a69560f4604c17b57ea4ccd06c5.tar.bz2
GT5-Unofficial-14f86046a0a88a69560f4604c17b57ea4ccd06c5.zip
Render fixes (#3409)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gregtech/common/tileentities/render/TileEntityLaser.java')
-rw-r--r--src/main/java/gregtech/common/tileentities/render/TileEntityLaser.java7
1 files changed, 7 insertions, 0 deletions
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;
}