Skip to content

Commit

Permalink
Should fix SellSign check.
Browse files Browse the repository at this point in the history
  • Loading branch information
MuresanSergiu committed Oct 31, 2015
1 parent 9527adb commit a23276b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/main/java/myessentials/entities/sign/Sign.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ public abstract class Sign {

protected abstract String[] getText();

protected abstract boolean isValid();

public void onShiftRightClick(EntityPlayer player) {
}

Expand Down Expand Up @@ -80,12 +78,7 @@ public void deleteSignBlock() {
public static class Container extends ArrayList<Sign> {
@Override
public boolean add(Sign sign) {
if(sign.isValid()) {
return super.add(sign);
} else {
MyEssentialsCore.instance.LOG.error("Failed to validate a special sign at location ({}, {}, {}; DIM: {})", sign.bp.getX(), sign.bp.getY(), sign.bp.getZ(), sign.bp.getDim());
return false;
}
return super.add(sign);
}

public Sign get(BlockPos bp) {
Expand Down

0 comments on commit a23276b

Please sign in to comment.