mirror of
https://github.com/GTNewHorizons/EnderCore.git
synced 2026-11-25 06:14:33 +00:00
SleepyTrousers/EnderIO#2764 Fix GuiContainerBase not working with the Ender IO
This commit is contained in:
1 parent
bda260b10f
commit
8bdcb36170
1 file changed
+3
-1
@@ -13,6 +13,8 @@ import net.minecraft.client.renderer.RenderHelper;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.Timer;
|
||||
import net.minecraftforge.client.ForgeHooksClient;
|
||||
import net.minecraftforge.common.ForgeHooks;
|
||||
|
||||
import org.lwjgl.input.Mouse;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
@@ -156,7 +158,7 @@ public abstract class GuiContainerBase extends GuiContainer implements ToolTipRe
|
||||
public void updateScreen() {
|
||||
super.updateScreen();
|
||||
|
||||
if (!inventorySlots.canInteractWith(mc.thePlayer)) {
|
||||
if (!ForgeHooks.canInteractWith(mc.thePlayer, inventorySlots)) {
|
||||
mc.thePlayer.closeScreen();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user