mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-17 19:05:31 +00:00
Fix #739 Trade station crashes when loaded without name set
This commit is contained in:
1 parent
1b7d64a7b5
commit
e9c4c416f5
9 files changed
+139
-71
No files matched your search
@@ -76,7 +76,7 @@ public class GuiHandlerMail extends GuiHandlerBase {
|
||||
case TraderGUI:
|
||||
return new GuiTrader(player.inventory, getTileForestry(world, x, y, z, player, MachineTrader.class));
|
||||
case TraderNameGUI:
|
||||
return new GuiTradeName(player.inventory, getTileForestry(world, x, y, z, player, MachineTrader.class));
|
||||
return new GuiTradeName(getTileForestry(world, x, y, z, player, MachineTrader.class));
|
||||
default:
|
||||
return null;
|
||||
|
||||
@@ -122,7 +122,7 @@ public class GuiHandlerMail extends GuiHandlerBase {
|
||||
case TraderGUI:
|
||||
return new ContainerTrader(player.inventory, getTileForestry(world, x, y, z, player, MachineTrader.class));
|
||||
case TraderNameGUI:
|
||||
return new ContainerTradeName(player.inventory, getTileForestry(world, x, y, z, player, MachineTrader.class));
|
||||
return new ContainerTradeName(getTileForestry(world, x, y, z, player, MachineTrader.class));
|
||||
default:
|
||||
return null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user