geforkt von Mirrors/Paper
SPIGOT-7403: Add direct API for waxed signs
By: Parker Hawke <hawkeboyz2@hotmail.com>
Dieser Commit ist enthalten in:
Ursprung
f0c9bae0f7
Commit
e7ebe80de9
@ -42,12 +42,22 @@ public class CraftSign<T extends TileEntitySign> extends CraftBlockEntityState<T
|
||||
|
||||
@Override
|
||||
public boolean isEditable() {
|
||||
return !getSnapshot().isWaxed() && getSnapshot().playerWhoMayEdit != null;
|
||||
return !isWaxed();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setEditable(boolean editable) {
|
||||
getSnapshot().setWaxed(!editable);
|
||||
this.setWaxed(!editable);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isWaxed() {
|
||||
return getSnapshot().isWaxed();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setWaxed(boolean waxed) {
|
||||
getSnapshot().setWaxed(waxed);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren