mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-24 18:19:03 +01:00
Remove ender-chest protection.
Enderchests are not modified on use. In fact, they don't even
have inventories, so they are not modified at all. To deny usage,
the interact flag must be denied, since they most closely fit in
a category with other interact-covered blocks (and not use-covered
blocks, since using them does not change the region in any way).
This commit reverts f7d36b and ea4f4c0
.
This commit is contained in:
parent
ee7dc27283
commit
e091a59063
@ -230,7 +230,7 @@ public final class Materials {
|
||||
MATERIAL_FLAGS.put(Material.COCOA, 0);
|
||||
MATERIAL_FLAGS.put(Material.SANDSTONE_STAIRS, 0);
|
||||
MATERIAL_FLAGS.put(Material.EMERALD_ORE, 0);
|
||||
MATERIAL_FLAGS.put(Material.ENDER_CHEST, MODIFIED_ON_RIGHT);
|
||||
MATERIAL_FLAGS.put(Material.ENDER_CHEST, 0);
|
||||
MATERIAL_FLAGS.put(Material.TRIPWIRE_HOOK, 0);
|
||||
MATERIAL_FLAGS.put(Material.TRIPWIRE, 0);
|
||||
MATERIAL_FLAGS.put(Material.EMERALD_BLOCK, 0);
|
||||
@ -1021,21 +1021,14 @@ public static boolean isBed(Material material) {
|
||||
public static boolean isUseFlagApplicable(Material material) {
|
||||
if (Tag.BUTTONS.getValues().contains(material)
|
||||
|| Tag.DOORS.getValues().contains(material)
|
||||
|| Tag.WOODEN_PRESSURE_PLATES.getValues().contains(material)) {
|
||||
|| Tag.WOODEN_PRESSURE_PLATES.getValues().contains(material)
|
||||
|| Tag.WOODEN_TRAPDOORS.getValues().contains(material)) {
|
||||
return true;
|
||||
}
|
||||
switch (material) {
|
||||
case LEVER: return true;
|
||||
case TRIPWIRE: return true;
|
||||
case OAK_TRAPDOOR: return true;
|
||||
case ACACIA_TRAPDOOR: return true;
|
||||
case BIRCH_TRAPDOOR: return true;
|
||||
case DARK_OAK_TRAPDOOR: return true;
|
||||
case IRON_TRAPDOOR: return true;
|
||||
case JUNGLE_TRAPDOOR: return true;
|
||||
case SPRUCE_TRAPDOOR: return true;
|
||||
case ENCHANTING_TABLE: return true;
|
||||
case ENDER_CHEST: return true;
|
||||
case BEACON: return true;
|
||||
case ANVIL: return true;
|
||||
case STONE_PRESSURE_PLATE: return true;
|
||||
|
Loading…
Reference in New Issue
Block a user