mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-23 09:37:51 +01:00
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 :^)
This commit is contained in:
parent
239eda3f96
commit
d37f015f0c
@ -259,7 +259,7 @@ public void onUseBlock(final UseBlockEvent event) {
|
|||||||
|
|
||||||
/* Inventory */
|
/* Inventory */
|
||||||
} else if (Materials.isInventoryBlock(type)) {
|
} else if (Materials.isInventoryBlock(type)) {
|
||||||
canUse = query.testBuild(BukkitAdapter.adapt(target), associable, combine(event, Flags.INTERACT, Flags.CHEST_ACCESS));
|
canUse = query.testBuild(BukkitAdapter.adapt(target), associable, combine(event, Flags.CHEST_ACCESS));
|
||||||
what = "open that";
|
what = "open that";
|
||||||
|
|
||||||
/* Beds */
|
/* Beds */
|
||||||
|
Loading…
Reference in New Issue
Block a user