Skip to content

Commit

Permalink
Fixed a bug with Bridges
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Jan 21, 2018
1 parent 591dce8 commit 4264302
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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())) {
Expand Down

0 comments on commit 4264302

Please sign in to comment.