mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
Add openSign method to HumanEntity
This commit is contained in:
parent
ce2c1367af
commit
4b7a93d5e1
1 changed files with 6 additions and 0 deletions
|
@ -654,6 +654,12 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Paper start - move open sign method to HumanEntity
|
||||||
|
@Override
|
||||||
|
public void openSign(final org.bukkit.block.Sign sign, final org.bukkit.block.sign.Side side) {
|
||||||
|
org.bukkit.craftbukkit.block.CraftSign.openSign(sign, (CraftPlayer) this, side);
|
||||||
|
}
|
||||||
|
// Paper end
|
||||||
@Override
|
@Override
|
||||||
public boolean dropItem(boolean dropAll) {
|
public boolean dropItem(boolean dropAll) {
|
||||||
if (!(this.getHandle() instanceof ServerPlayer)) return false;
|
if (!(this.getHandle() instanceof ServerPlayer)) return false;
|
||||||
|
|
Loading…
Reference in a new issue