From 1859b88377bac13db36978f899a1d142c61d6847 Mon Sep 17 00:00:00 2001 From: miozune Date: Sun, 8 Sep 2024 00:20:14 +0900 Subject: Update MUI2 (#3100) --- dependencies.gradle | 2 +- .../java/gtPlusPlus/core/block/machine/BlockDecayablesChest.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index 1bc2866f6a..7a7bbaf14c 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -40,7 +40,7 @@ dependencies { api("com.github.GTNewHorizons:NotEnoughIds:2.1.0:dev") api("com.github.GTNewHorizons:GTNHLib:0.5.5:dev") api("com.github.GTNewHorizons:ModularUI:1.2.2:dev") - api("com.github.GTNewHorizons:ModularUI2:2.1.4-1.7.10:dev") + api("com.github.GTNewHorizons:ModularUI2:2.1.5-1.7.10:dev") api("com.github.GTNewHorizons:waila:1.8.1:dev") api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-452-GTNH:dev") api("com.github.GTNewHorizons:AE2FluidCraft-Rework:1.3.35-gtnh:dev") diff --git a/src/main/java/gtPlusPlus/core/block/machine/BlockDecayablesChest.java b/src/main/java/gtPlusPlus/core/block/machine/BlockDecayablesChest.java index cacfae7694..7b42f08fa8 100644 --- a/src/main/java/gtPlusPlus/core/block/machine/BlockDecayablesChest.java +++ b/src/main/java/gtPlusPlus/core/block/machine/BlockDecayablesChest.java @@ -15,7 +15,7 @@ import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; -import com.cleanroommc.modularui.factory.TileEntityGuiFactory; +import com.cleanroommc.modularui.factory.GuiFactories; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; @@ -140,7 +140,8 @@ public class BlockDecayablesChest extends BlockContainer implements ITileTooltip final TileEntity te = world.getTileEntity(x, y, z); if (te instanceof TileEntityDecayablesChest) { - TileEntityGuiFactory.INSTANCE.open(player, x, y, z); + GuiFactories.tileEntity() + .open(player, x, y, z); return true; } return false; -- cgit