|
1 | 1 | package gregtech.mixins.minecraft; |
2 | 2 |
|
3 | 3 | import gregtech.api.items.toolitem.ItemGTToolbelt; |
4 | | -import gregtech.client.IsGuiActuallyClosing; |
5 | 4 | import gregtech.common.ConfigHolder; |
6 | 5 |
|
7 | 6 | import net.minecraft.client.Minecraft; |
8 | | -import net.minecraft.client.gui.GuiScreen; |
9 | 7 | import net.minecraft.entity.player.InventoryPlayer; |
10 | 8 | import net.minecraft.item.ItemStack; |
11 | 9 | import net.minecraft.util.text.TextComponentTranslation; |
12 | 10 |
|
13 | | -import org.jetbrains.annotations.Nullable; |
14 | 11 | import org.lwjgl.input.Keyboard; |
15 | 12 | import org.objectweb.asm.Opcodes; |
16 | 13 | import org.spongepowered.asm.mixin.Mixin; |
17 | 14 | import org.spongepowered.asm.mixin.injection.At; |
18 | 15 | import org.spongepowered.asm.mixin.injection.Inject; |
19 | 16 | import org.spongepowered.asm.mixin.injection.Redirect; |
20 | | -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; |
21 | 17 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; |
22 | 18 |
|
23 | 19 | @Mixin(Minecraft.class) |
@@ -46,9 +42,4 @@ public void interceptHotbarKeybindsForToolbelt(InventoryPlayer inventoryPlayer, |
46 | 42 | } |
47 | 43 | inventoryPlayer.currentItem = i; |
48 | 44 | } |
49 | | - |
50 | | - @Inject(method = "displayGuiScreen", at = @At(value = "HEAD")) |
51 | | - public void captureNewGUI(@Nullable GuiScreen guiScreenIn, CallbackInfo ci) { |
52 | | - IsGuiActuallyClosing.isGuiActuallyClosing = guiScreenIn == null; |
53 | | - } |
54 | 45 | } |
0 commit comments