Posted 06 May 2013 - 09:09 AM
java.lang.NullPointerException
at dan200.computer.shared.InventoryUtils.takePartialItemStack(InventoryUtils.java:219)
at dan200.computer.shared.InventoryUtils.takePartialItemStack(InventoryUtils.java:109)
at dan200.turtle.shared.TileEntityTurtle.suck(TileEntityTurtle.java:2060)
at dan200.turtle.shared.TileEntityTurtle.updateCommands(TileEntityTurtle.java:2657)
at dan200.turtle.shared.TileEntityTurtle.func_70316_g(TileEntityTurtle.java:2331)
at net.minecraft.world.World.func_72939_s(World.java:2196)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:546)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:651)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:570)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:468)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
I think you should put check "slots" for null on the line 218 ("if(slots != null)")
because method makeSlotList can return null (if range == 0)
at dan200.computer.shared.InventoryUtils.takePartialItemStack(InventoryUtils.java:219)
at dan200.computer.shared.InventoryUtils.takePartialItemStack(InventoryUtils.java:109)
at dan200.turtle.shared.TileEntityTurtle.suck(TileEntityTurtle.java:2060)
at dan200.turtle.shared.TileEntityTurtle.updateCommands(TileEntityTurtle.java:2657)
at dan200.turtle.shared.TileEntityTurtle.func_70316_g(TileEntityTurtle.java:2331)
at net.minecraft.world.World.func_72939_s(World.java:2196)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:546)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:651)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:570)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:468)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
I think you should put check "slots" for null on the line 218 ("if(slots != null)")
because method makeSlotList can return null (if range == 0)