Stop NEI Crashing when cheating items to a full inventory

This commit is contained in:
mezz committed 2015-08-09 20:45:04 -07:00
1 parent f9b76a90b1
commit 6f07bbc63f
1 file changed
+3 -2
@@ -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<C extends Container, I extends IInventory> ext
@Override
@Optional.Method(modid = "NotEnoughItems")
public Iterable<Integer> getItemSpawnSlots(GuiContainer gui, ItemStack item) {
return null;
return Collections.emptyList();
}
@Override
@Optional.Method(modid = "NotEnoughItems")
public List<TaggedInventoryArea> getInventoryAreas(GuiContainer gui) {
return null;
return Collections.emptyList();
}
@Override