Help with a crash

Started by madcock83 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with a crash

Ill post the crash down at the bottom. I cant seem to figure out why i keep crashing.  the anitmatter block in the crash seems to be the cause but it also seems to point to a procedure that is onPlayertick if a button in the gui is pushed.   but that button isnt apart of the antimatter block.  seems to only happen when the anti block is in the players view.  I havent notice anything that im doing to makes it crash in game.  no "I clicked this and it happen" thing

java.lang.ArrayIndexOutOfBoundsException: 1
    at java.util.Arrays$ArrayList.get(Unknown Source)
    at net.minecraft.util.NonNullList.get(SourceFile:44)
    at net.mcreator.usefuldns.MCreatorAntimatter$TileEntityCustom.func_70301_a(MCreatorAntimatter.java:192)
    at net.mcreator.usefuldns.MCreatorFirancesort$1.getItemStack(MCreatorFirancesort.java:48)
    at net.mcreator.usefuldns.MCreatorFirancesort.executeProcedure(MCreatorFirancesort.java:51)
    at net.mcreator.usefuldns.MCreatorFirancesort.onPlayerTick(MCreatorFirancesort.java:518)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_2322_MCreatorFirancesort_onPlayerTick_PlayerTickEvent.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
    at net.minecraftforge.fml.common.FMLCommonHandler.onPlayerPostTick(FMLCommonHandler.java:370)
    at net.minecraft.entity.player.EntityPlayer.func_184808_cD(EntityPlayer.java:378)
    at net.minecraft.entity.player.EntityPlayer.func_70071_h_(EntityPlayer.java:288)
    at net.minecraft.entity.player.EntityPlayerMP.func_71127_g(EntityPlayerMP.java:382)
    at net.minecraft.network.NetHandlerPlayServer.func_73660_a(NetHandlerPlayServer.java:173)
    at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.func_73660_a(NetworkDispatcher.java:209)
    at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:285)
    at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:180)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:790)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
    at java.lang.Thread.run(Unknown Source)

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
dont think thats the cause. …
Thu, 09/26/2019 - 20:42

dont think thats the cause.  the block thats causing the crash does NOT have a gui.  I only bring up the block with the gui is because its the second thing the crash log is pointing to.  the crash happens when the first block is in the players view and the other block is not even in the world.  but the block that has the gui has a button that when clicked does something on the playerticks

Yes, but you are still…
Fri, 09/27/2019 - 08:18

Yes, but you are still accessing the inventory slots inside the block using procedures, you still need enough slots.

ava.lang.ArrayIndexOutOfBoundsException: 1
    at java.util.Arrays$ArrayList.get(Unknown Source)
    at net.minecraft.util.NonNullList.get(SourceFile:44)
    at net.mcreator.usefuldns.MCreatorAntimatter$TileEntityCustom.func_70301_a(MCreatorAntimatter.java:192)
    at net.mcreator.usefuldns.MCreatorFirancesort$1.getItemStack(MCreatorFirancesort.java:48)

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
which block is causing the…
Fri, 09/27/2019 - 15:37

which block is causing the problem.  the antimatter has no inventory.  no slots. the furnancesort procedure has 16 slots in the gui, only uses the first 9 slots and the block itself is setup with 20 slots incase I added more. do I need to make the antimatter block have an inventory and give it slots even if it doesn't use them in anyway?

 

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok.  ill go back and check…
Fri, 09/27/2019 - 23:20

ok.  ill go back and check. Its not suppose to. Guess if it does then thats the issues