From 7ac8db9ecf8bd8775b5249e48f8ac9a84d675b4d Mon Sep 17 00:00:00 2001 From: Léa Gris Date: Thu, 30 Mar 2023 21:48:25 +0200 Subject: Implementation of A more useful Lava Boiler (#1814) * Fix Missing null/empty checks on boilers base class Would cause a deadlock on empty boilers unable to start, as it tried to transfer null or empty FuildStack. * Fix Sound coordinates so it can be centered on block * WIP Lava Boiler Improuvements * :spotlessapply * Add GUI slot block background textures * Restrict ash slot to remove items only (disallow inserting items there) * Finalize GUI and Obsidian Production mechanic * Fix still output Obisidian from cooled Lava even when no more Lava available * Lava Boiler Textures: Improves GUI and TOP - Fluid slot now has Steam themed textures - Item slot block background gets a smaller icon that hides behind actual item blocks - Boiler TOP is now a drain texture instead of pump * Add null check --- src/main/java/gregtech/api/util/GT_Utility.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/java/gregtech/api/util') diff --git a/src/main/java/gregtech/api/util/GT_Utility.java b/src/main/java/gregtech/api/util/GT_Utility.java index 577364c0f7..4dd99e3ff7 100644 --- a/src/main/java/gregtech/api/util/GT_Utility.java +++ b/src/main/java/gregtech/api/util/GT_Utility.java @@ -2165,9 +2165,9 @@ public class GT_Utility { if (GregTech_API.sMultiThreadedSounds) new Thread( new GT_Runnable_Sound( GT.getThePlayer().worldObj, - MathHelper.floor_double(aX), - MathHelper.floor_double(aY), - MathHelper.floor_double(aZ), + aX, + aY, + aZ, aTimeUntilNextSound, aSoundResourceLocation, aSoundStrength, @@ -2175,9 +2175,9 @@ public class GT_Utility { "Sound Effect").start(); else new GT_Runnable_Sound( GT.getThePlayer().worldObj, - MathHelper.floor_double(aX), - MathHelper.floor_double(aY), - MathHelper.floor_double(aZ), + aX, + aY, + aZ, aTimeUntilNextSound, aSoundResourceLocation, aSoundStrength, -- cgit