From 6f07bbc63f41ae2d31a37c153db60e4ee0e03143 Mon Sep 17 00:00:00 2001 From: mezz Date: Sun, 9 Aug 2015 20:45:04 -0700 Subject: [PATCH] Stop NEI Crashing when cheating items to a full inventory --- src/main/java/forestry/core/gui/GuiForestry.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/forestry/core/gui/GuiForestry.java b/src/main/java/forestry/core/gui/GuiForestry.java index d94179138..57f901a6a 100755 --- a/src/main/java/forestry/core/gui/GuiForestry.java +++ b/src/main/java/forestry/core/gui/GuiForestry.java @@ -12,6 +12,7 @@ package forestry.core.gui; import java.awt.Color; import java.util.Collection; +import java.util.Collections; import java.util.List; import net.minecraft.client.gui.FontRenderer; @@ -473,13 +474,13 @@ public abstract class GuiForestry ext @Override @Optional.Method(modid = "NotEnoughItems") public Iterable getItemSpawnSlots(GuiContainer gui, ItemStack item) { - return null; + return Collections.emptyList(); } @Override @Optional.Method(modid = "NotEnoughItems") public List getInventoryAreas(GuiContainer gui) { - return null; + return Collections.emptyList(); } @Override