Permalink
Browse files

Fixed a bug with Bridges

  • Loading branch information...
me4502 committed Jan 21, 2018
1 parent 591dce8 commit 4264302ff425d69ef38f5239f566ab47183ffb29
@@ -38,7 +38,6 @@
import org.spongepowered.api.block.tileentity.Sign;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.data.key.Keys;
import org.spongepowered.api.data.type.TreeTypes;
import org.spongepowered.api.entity.EntityTypes;
import org.spongepowered.api.entity.Item;
import org.spongepowered.api.entity.living.Humanoid;
@@ -87,7 +86,7 @@ public boolean triggerMechanic(Location<World> block, Sign sign, Humanoid human,
}
if(!BlockUtil.doesStatePassFilters(allowedBlocks.getValue(), baseBlock.getBlock())) {
if (block.getBlock() != BlockTypes.WALL_SIGN) {
if (block.getBlockType() != BlockTypes.WALL_SIGN) {
bridgeDirection = Direction.UP;
baseBlock = block.getRelative(bridgeDirection);
if(!BlockUtil.doesStatePassFilters(allowedBlocks.getValue(), baseBlock.getBlock())) {

0 comments on commit 4264302

Please sign in to comment.