Try a different way of seeing if a block is a sign on removing of a cell
This commit is contained in:
parent
e0411f1202
commit
3a6a76a86c
@ -165,7 +165,7 @@ public class Jail {
|
|||||||
|
|
||||||
//For each sign, clear the lines on the sign
|
//For each sign, clear the lines on the sign
|
||||||
for(SimpleLocation s : this.cells.get(name).getSigns()) {
|
for(SimpleLocation s : this.cells.get(name).getSigns()) {
|
||||||
if(s.getLocation().getBlock().getState() instanceof Sign) {
|
if(s.getLocation().getBlock() instanceof Sign) {
|
||||||
Sign sign = (Sign) s.getLocation().getBlock();
|
Sign sign = (Sign) s.getLocation().getBlock();
|
||||||
for(int i = 0; i < 4; i++) {
|
for(int i = 0; i < 4; i++) {
|
||||||
sign.setLine(i, "");
|
sign.setLine(i, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user