perworldinventory-kt
perworldinventory-kt copied to clipboard
Separate gamemode inventories not working correctly with Hyperverse
Describe the bug Using Hyperverse to manage worlds. When you put something in your creative mode inventory in one world, travel to another survival world (that is in a different group), switch your gamemode to creative, you'll have the items in your inventory of the other world.
To Reproduce Steps to reproduce the behavior:
- Make sure that
separate-gamemode-inventories
is set totrue
in the PWI config (should be by default) - Make sure you have at least 2 worlds that are in different groups. Let's say we have worldA and worldB. Make sure the default gamemode of worldB is survival.
- While on creative mode in worldA put something in your inventory (let's say a stack of diamonds)
- Teleport to worldB (
/hvtp worldB
) - Switch to creative mode (
/gamemode creative
)
Expected behavior The inventory should be empty. Since you've never used creative mode in worldB before.
Actual behavior The diamonds you've in your creative inventory in worldA are present in worldB.
Plugin version
- perworldinventory-kt-2.3.2
- Hyperverse-Bukkit-1.16.2-0.9.0-SNAPSHOT
Server version
paper-199 (Minecraft 1.16.3) [298c9022b03cc5f8ba2d1a0cc3cac860a9d5757b
]
Additional context and logs Seems to work the other way around as well. Getting the survival inventory from worldA in WorldB, if you switch the gamemodes around.
Issue doesn't seem to happen when using Multiverse to manage worlds.