Some InventoryUtil-reliant mods only work on first world entered in a session
RoyCurtis opened this issue ยท 1 comments
Reproduction
- Open Minecraft and enter a single player or multiplayer world
- With ender pearls in inventory, press C to fire an ender pearl
- Observe as Ender Pearl Aid works as intended
- Leave world, then re-enter same or enter another world
- Repeat step 2.
- Observe as Ender Pearl Aid no longer works (ender pearls seem to get used, but do not appear in-world and item count is eventually reverted)
Fixes
In InventoryUtil.java, remove:
private static PlayerControllerMP playerController = mc.playerController;
then change all references to playerController
with mc.playerController
in-file