Add openSign method to HumanEntity

This commit is contained in:
Mark Vainomaa 2018-04-01 02:29:37 +03:00
parent ce2c1367af
commit 4b7a93d5e1

View file

@ -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
public boolean dropItem(boolean dropAll) {
if (!(this.getHandle() instanceof ServerPlayer)) return false;