Skip to content

Commit d37f015

Browse files
committed
De-couple chest-access from interact. READ BELOW.
This is possibly a breaking change, in that WG will be overprotective in regions which previously had interact set to allow but didn't change the chest-access flag. If you previously had regions like this where you would like to have non-members access chests, you will need to set the chest-access flag to allow. This change was made to alleviate some confusion that became more evident recently with lecterns, since interacting with lecterns allowed one to read a book, but the chest-access flag controlled taking the book. This required setting interact to allow and chest-access to deny (at least for nonmembers) to allow guests to read books but not take them. This is a tentative change and may be reverted if it is too unpopular. Thanks for testing dev builds :^)
1 parent 239eda3 commit d37f015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/listener/RegionProtectionListener.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public void onUseBlock(final UseBlockEvent event) {
259259

260260
/* Inventory */
261261
} else if (Materials.isInventoryBlock(type)) {
262-
canUse = query.testBuild(BukkitAdapter.adapt(target), associable, combine(event, Flags.INTERACT, Flags.CHEST_ACCESS));
262+
canUse = query.testBuild(BukkitAdapter.adapt(target), associable, combine(event, Flags.CHEST_ACCESS));
263263
what = "open that";
264264

265265
/* Beds */

0 commit comments

Comments
 (0)