Fixes a bug that protects blocks around permission signs
This commit is contained in:
parent
3bb5970a57
commit
6705d2e4b1
@ -100,7 +100,9 @@ public class BlockListener implements Listener {
|
|||||||
|
|
||||||
//Protect any permission signs attached to the block
|
//Protect any permission signs attached to the block
|
||||||
for (BlockFace blockFace : getRelevantBlockFaces()) {
|
for (BlockFace blockFace : getRelevantBlockFaces()) {
|
||||||
blocksToCheck.put(block.getRelative(blockFace), Tag.WALL_SIGNS);
|
if (!(Tag.WALL_SIGNS.isTagged(block.getBlockData().getMaterial()))) {
|
||||||
|
blocksToCheck.put(block.getRelative(blockFace), Tag.WALL_SIGNS);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Block blockToCheck : blocksToCheck.keySet()) {
|
for (Block blockToCheck : blocksToCheck.keySet()) {
|
||||||
@ -161,6 +163,7 @@ public class BlockListener implements Listener {
|
|||||||
* @return <p>True if the material is affected by gravity</p>
|
* @return <p>True if the material is affected by gravity</p>
|
||||||
*/
|
*/
|
||||||
private boolean isAffectedByGravity(Material material) {
|
private boolean isAffectedByGravity(Material material) {
|
||||||
|
//TODO: Find a better way of deciding which blocks are affected by gravity
|
||||||
return Tag.SAND.isTagged(material) || Tag.ANVIL.isTagged(material) || material == Material.POINTED_DRIPSTONE ||
|
return Tag.SAND.isTagged(material) || Tag.ANVIL.isTagged(material) || material == Material.POINTED_DRIPSTONE ||
|
||||||
Tag.SIGNS.isTagged(material) || material == Material.DRAGON_EGG || material == Material.GRAVEL ||
|
Tag.SIGNS.isTagged(material) || material == Material.DRAGON_EGG || material == Material.GRAVEL ||
|
||||||
material == Material.BLACK_CONCRETE_POWDER || material == Material.BLUE_CONCRETE_POWDER ||
|
material == Material.BLACK_CONCRETE_POWDER || material == Material.BLUE_CONCRETE_POWDER ||
|
||||||
|
Loading…
Reference in New Issue
Block a user