Fix crash with creating a survival world after being in C+

This commit is contained in:
Chicken-Bomes committed 2014-05-02 11:16:20 +10:00
1 parent b27e4d9e03
commit 4de84e2b60
1 file changed
+1 -1
+1 -1
View File
@@ -211,7 +211,7 @@ public class NEIClientConfig
LayoutManager.quantity.setText(Integer.toString(getItemQuantity()));
if (newWorld && Minecraft.getMinecraft().isSingleplayer())
world.config.getTag("inventory.cheatmode").setIntValue(NEIClientUtils.getGamemode() == 1 ? 2 : 0);
world.config.getTag("inventory.cheatmode").setIntValue(NEIClientUtils.mc().playerController.isInCreativeMode() ? 2 : 0);
NEIInfo.load(ClientUtils.getWorld());
}