Skip to content

Commit 0015d1a

Browse files
authored
fix: correct hopper placement enabled state (#2069)
- Update hopper block data to maintain correct enabled state when placed
1 parent 3b03510 commit 0015d1a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

quickshop-bukkit/src/main/java/com/ghostchu/quickshop/listener/ShopProtectionListener.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public void onPlaceHopper(final BlockPlaceEvent e) {
161161

162162
if(e.getBlockPlaced().getState() instanceof final Hopper hopper) {
163163
hopper.getPersistentDataContainer().set(hopperKey, HopperPersistentDataType.INSTANCE, new HopperPersistentData(e.getPlayer().getUniqueId()));
164+
hopper.setBlockData(e.getBlockPlaced().getBlockData());
164165
hopper.update();
165166
}
166167
}

0 commit comments

Comments
 (0)