isAffectedBlock

This commit is contained in:
Jesse Boyd 2019-06-29 06:31:07 +10:00
parent 664a7017b6
commit 13b602cb83
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -36,13 +36,7 @@ public class SignCompatibilityHandler implements NBTCompatibilityHandler {
@Override
public <B extends BlockStateHolder<B>> boolean isAffectedBlock(B block) {
switch (block.getBlockType().getInternalId()) {
case BlockID.SIGN:
case BlockID.WALL_SIGN:
return true;
default:
return false;
}
return block.getBlockType() == BlockTypes.SIGN || block.getBlockType() == BlockTypes.WALL_SIGN;
}
@Override