Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by loordgek

  1. MAX_DAMAGE_ARRAY is 4 elements long, you want to get element 6 that is why you get ArrayIndexOutOfBoundsException
  2. https://mcforge.readthedocs.io/en/latest/networking/
  3. you need to tell the server that it needs to change the slot
  4. https://www.curseforge.com/minecraft/mc-mods/building-gadgets
  5. read what diesieben07 linked you and try it its not that hard
  6. https://mcforge.readthedocs.io/en/1.13.x/datastorage/capabilities/
  7. https://github.com/MinecraftForge/MinecraftForge/blob/1.17.x/src/main/java/net/minecraftforge/event/world/SleepFinishedTimeEvent.java#L54
  8. what are you trying to do 9 out of 10 there are ways to do something that doesn't involve mixin/asm
  9. that is because the slots are still linked to the first backpack
  10. fixed here you are trying to get your capablilty from your backpack w/ no side(null) https://github.com/Zemelua/UMU-Mod/blob/main/src/main/java/io/github/zemelua/umumod/inventory/container/BelongingsUMUPlayerContainer.java#L61 here you check if there is no side(null) https://github.com/Zemelua/UMU-Mod/blob/main/src/main/java/io/github/zemelua/umumod/capability/FunctionalBackpackCapabilityProvider.java#L29 so you never get the capablilty use ifPresent instead of orElse so .ifPresent(add the slots in here)
  11. after a bit of testing i found the problem this.player.getItemStackFromSlot(EquipmentSlotType.CHEST).getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY).orElse(new ItemStackHandler(36) .orElse(new ItemStackHandler(36) < that is the problem NEVER EVER do that. you should never return a new object in .orElse
  12. https://github.com/Zemelua/UMU-Mod/blob/main/src/main/java/io/github/zemelua/umumod/inventory/container/BelongingsUMUPlayerContainer.java#L60 what are you doing here ?
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.