Browse Source

fix: Display the Aether inventory tabs regardless of dimension

pull/253/head
Angeline 4 months ago
parent
commit
54b00b939f
No account linked to committer's email address

+ 2
- 3
src/main/java/com/gildedgames/aether/client/events/listeners/gui/GuiTabListener.java View File

@@ -5,7 +5,6 @@ import com.gildedgames.aether.api.registry.tab.ITabClient;
5 5
 import com.gildedgames.aether.api.registry.tab.ITabGroup;
6 6
 import com.gildedgames.aether.api.registry.tab.ITabGroupHandler;
7 7
 import com.gildedgames.aether.client.gui.tab.RenderTabGroup;
8
-import com.gildedgames.aether.common.init.DimensionsAether;
9 8
 import com.gildedgames.aether.common.network.NetworkingAether;
10 9
 import com.gildedgames.aether.common.network.packets.PacketOpenTab;
11 10
 import net.minecraft.client.Minecraft;
@@ -29,7 +28,7 @@ public class GuiTabListener
29 28
 	@SubscribeEvent
30 29
 	public static void onGuiOpen(final GuiOpenEvent event)
31 30
 	{
32
-		if (Minecraft.getMinecraft().world == null || Minecraft.getMinecraft().world.provider.getDimensionType() != DimensionsAether.AETHER)
31
+		if (Minecraft.getMinecraft().world == null)
33 32
 		{
34 33
 			return;
35 34
 		}
@@ -86,7 +85,7 @@ public class GuiTabListener
86 85
 	@SubscribeEvent
87 86
 	public static void onGuiMouseEvent(final GuiScreenEvent.MouseInputEvent.Pre event)
88 87
 	{
89
-		if (Minecraft.getMinecraft().world == null || Minecraft.getMinecraft().world.provider.getDimensionType() != DimensionsAether.AETHER)
88
+		if (Minecraft.getMinecraft().world == null)
90 89
 		{
91 90
 			return;
92 91
 		}

Loading…
Cancel
Save