mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
Add openSign method to HumanEntity
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user