Jump to content

Recommended Posts

Posted

Whenever I try to open my crafting table in-game, it does not open and makes the items in my hotbar disappear and in the console, I get this: java.lang.IndexOutOfBoundsException: Index: 46, Size: 46

 

Heres my main code:

https://github.com/LabRat54/RainbowRevamaped/blob/master/RainbowRevamped.java

 

Heres my crafting table container:

https://github.com/LabRat54/RainbowRevamaped/blob/master/containers/ContainerRainbowCraftingTable.java

 

Heres the GUI:

https://github.com/LabRat54/RainbowRevamaped/blob/master/guis/RainbowCraftingTableGUI.java

 

Heres the block:

https://github.com/LabRat54/RainbowRevamaped/blob/master/blocks/RainbowCraftingTable.java

Posted

1. Page not found.

2. Post the crash.

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Posted

You still have to

50 minutes ago, DavidM said:

Post the crash.

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Posted

2. There isn't really a crash but whenever I try to use the crafting table this appears in the console:

 

[23:11:14.934] [Client thread/FATAL] [minecraft/Minecraft]: Error executing task
java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 46, Size: 46
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_211]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_211]
    at net.minecraft.util.Util.runTask(Util.java:127) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:840) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:399) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.client.main.Main.main(Main.java:117) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]
    at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:19) [modlauncher-1.0.0.jar:?]
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:32) [modlauncher-1.0.0.jar:?]
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50) [modlauncher-1.0.0.jar:?]
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:57) [modlauncher-1.0.0.jar:?]
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:43) [modlauncher-1.0.0.jar:?]
    at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:84) [forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
Caused by: java.lang.IndexOutOfBoundsException: Index: 46, Size: 46
    at java.util.ArrayList.rangeCheck(ArrayList.java:657) ~[?:1.8.0_211]
    at java.util.ArrayList.get(ArrayList.java:433) ~[?:1.8.0_211]
    at net.minecraft.inventory.Container.getSlot(Container.java:121) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.inventory.Container.setAll(Container.java:422) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.client.network.NetHandlerPlayClient.handleWindowItems(NetHandlerPlayClient.java:1120) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.network.play.server.SPacketWindowItems.processPacket(SPacketWindowItems.java:61) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.network.play.server.SPacketWindowItems.processPacket(SPacketWindowItems.java:13) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.network.PacketThreadUtil.lambda$checkThreadAndEnqueue$0(PacketThreadUtil.java:15) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_211]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_211]
    at net.minecraft.util.Util.runTask(Util.java:126) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    ... 14 more
[23:11:14.935] [Client thread/FATAL] [minecraft/Minecraft]: Error executing task
java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 58, Size: 46
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_211]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_211]
    at net.minecraft.util.Util.runTask(Util.java:127) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:840) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:399) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.client.main.Main.main(Main.java:117) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]
    at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:19) [modlauncher-1.0.0.jar:?]
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:32) [modlauncher-1.0.0.jar:?]
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50) [modlauncher-1.0.0.jar:?]
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:57) [modlauncher-1.0.0.jar:?]
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:43) [modlauncher-1.0.0.jar:?]
    at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:84) [forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
Caused by: java.lang.IndexOutOfBoundsException: Index: 58, Size: 46
    at java.util.ArrayList.rangeCheck(ArrayList.java:657) ~[?:1.8.0_211]
    at java.util.ArrayList.get(ArrayList.java:433) ~[?:1.8.0_211]
    at net.minecraft.inventory.Container.getSlot(Container.java:121) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.inventory.Container.putStackInSlot(Container.java:416) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.client.network.NetHandlerPlayClient.handleSetSlot(NetHandlerPlayClient.java:1085) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.network.play.server.SPacketSetSlot.processPacket(SPacketSetSlot.java:29) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.network.play.server.SPacketSetSlot.processPacket(SPacketSetSlot.java:11) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.network.PacketThreadUtil.lambda$checkThreadAndEnqueue$0(PacketThreadUtil.java:15) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_211]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_211]
    at net.minecraft.util.Util.runTask(Util.java:126) ~[forge-1.13.2-25.0.149_mapped_snapshot_20180921-1.13-recomp.jar:?]
    ... 14 more

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.