mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 08:17:44 +01:00
SPIGOT-7403: Add direct API for waxed signs
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
parent
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
|
||||
|
Loading…
Reference in New Issue
Block a user