
Hopper Minecarts do not take items from chests in regions
baailey opened this issue ยท 5 comments
WorldEdit Version
7.3.11-SNAPSHOT+7302-c20366d
WorldGuard Version
7.0.14-SNAPSHOT+2329-33bbd93
Platform Version
Paper version 1.21.4-183
Confirmations
- I am using the most recent Minecraft release.
- I am using a version of WorldEdit compatible with my Minecraft version.
- I am using a version of WorldGuard compatible with my Minecraft version.
- I am using the latest or recommended version of my platform software.
- I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
- I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)
Bug Description
Hopper Minecarts are not pulling items from chests, even with chest-access
set to true in the region, as well as ignore-hopper-item-move-events
being set to false in the WG config and disable-move-event
being set to false in the paper-worlds-default config.
If a Hopper Minecart is set up outside a region, it works as intended.
Expected Behavior
For the Hopper Minecart to pull items from chests with chest-access set to allow.
Reproduction Steps
- Place a Hopper Minecart on a rail
- Place a chest above it
- Claim them and set chest-access to allow
- Place an item in the chest
Optional WorldGuard-Report
https://paste.enginehub.org/k6FCGqJYb.report
Anything Else?
No response
ok i see why this broke. the hopper minecart is "using" its own inventory, and opening vehicle inventories got changed to account for chest boats. fun.
[14:15:09 INFO]: [WorldGuard] INTERACT CHEST [CraftMinecartHopper{inventory=org.bukkit.craftbukkit.inventory.CraftInventory@16}] @2545,73,-36 : PaperInventoryMoveItemEvent
[14:15:09 INFO]: [WorldGuard] INTERACT HOPPER_MINECART [CraftMinecartHopper{inventory=org.bukkit.craftbukkit.inventory.CraftInventory@16}] @2545,72,-36 : PaperInventoryMoveItemEvent [DENY]
[14:39:40 INFO]: [WorldGuard] INTERACT CHEST [CraftMinecartHopper{inventory=org.bukkit.craftbukkit.inventory.CraftInventory@7b4}] @435,68,-212 : PaperInventoryMoveItemEvent
[14:39:40 INFO]: [WorldGuard] INTERACT HOPPER_MINECART [CraftMinecartHopper{inventory=org.bukkit.craftbukkit.inventory.CraftInventory@7b4}] @435,67,-212 : PaperInventoryMoveItemEvent
paper version 1.21-130
wg version 7.0.12+829a4a4
we version 7.3.9+6959-7adf70b
if disable move events in paper's config is true, i don't see how WG could even be preventing this? like in theory we don't even get an event to cancel.
edit: wait i think i mixed up the false and true bits.
k not sure why this would have changed. i don't have a 1.21 test server so i won't be able to debug this for now. possibly an event log would help, but if something changed upstream i'll need to figure it out when i get time.