diff options
Diffstat (limited to 'patches/server/0181-Add-openSign-method-to-HumanEntity.patch')
-rw-r--r-- | patches/server/0181-Add-openSign-method-to-HumanEntity.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/server/0181-Add-openSign-method-to-HumanEntity.patch b/patches/server/0181-Add-openSign-method-to-HumanEntity.patch new file mode 100644 index 0000000000..c90098c049 --- /dev/null +++ b/patches/server/0181-Add-openSign-method-to-HumanEntity.patch @@ -0,0 +1,23 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Mark Vainomaa <[email protected]> +Date: Sun, 1 Apr 2018 02:29:37 +0300 +Subject: [PATCH] Add openSign method to HumanEntity + + +diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +index 768a6e3f5d75d37ae114ffcf2b090fe9de769381..6d4e0a90c70f7a66450cbb18ebec1d7bf9200af2 100644 +--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java ++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +@@ -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; |