Jump to content

loordgek

Members
  • Posts

    1910
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by loordgek

  1. do you hava a link
  2. MAX_DAMAGE_ARRAY is 4 elements long, you want to get element 6 that is why you get ArrayIndexOutOfBoundsException
  3. what is 3 * 7? < that's wrong
  4. https://mcforge.readthedocs.io/en/latest/networking/
  5. you need to tell the server that it needs to change the slot
  6. https://www.curseforge.com/minecraft/mc-mods/building-gadgets
  7. read what diesieben07 linked you and try it its not that hard
  8. https://mcforge.readthedocs.io/en/1.13.x/datastorage/capabilities/
  9. https://github.com/MinecraftForge/MinecraftForge/blob/1.17.x/src/main/java/net/minecraftforge/event/world/SleepFinishedTimeEvent.java#L54
  10. what are you trying to do 9 out of 10 there are ways to do something that doesn't involve mixin/asm
  11. https://mcforge.readthedocs.io/en/1.13.x/datastorage/capabilities/
  12. where did you get forge from
  13. click the green box it tells wat to do
  14. that is because the slots are still linked to the first backpack
  15. works fine for me can you show what you mean
  16. 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)
  17. 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
  18. 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 ?
  19. why does ArmorRenderer extend ArmorItem ?
  20. you dont have enough memory https://cubedhost.com/help/en/articles/1648388-how-do-i-allocate-more-memory-to-my-minecraft-launcher-client-side
×
×
  • Create New...

Important Information

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