aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0662-Left-handed-API.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0662-Left-handed-API.patch')
-rw-r--r--patches/server/0662-Left-handed-API.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/patches/server/0662-Left-handed-API.patch b/patches/server/0662-Left-handed-API.patch
new file mode 100644
index 0000000000..e75eb9ca95
--- /dev/null
+++ b/patches/server/0662-Left-handed-API.patch
@@ -0,0 +1,26 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: William Blake Galbreath <[email protected]>
+Date: Thu, 14 Oct 2021 12:36:58 -0500
+Subject: [PATCH] Left handed API
+
+
+diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftMob.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftMob.java
+index 6152f4d3d58f4b598d5bd92dbd7c5428c5ff8bc5..40d277f2737f1a060c3047313289c73307948e73 100644
+--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftMob.java
++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftMob.java
+@@ -147,5 +147,15 @@ public abstract class CraftMob extends CraftLivingEntity implements Mob {
+ public int getMaxHeadPitch() {
+ return getHandle().getMaxHeadXRot();
+ }
++
++ @Override
++ public boolean isLeftHanded() {
++ return getHandle().isLeftHanded();
++ }
++
++ @Override
++ public void setLeftHanded(boolean leftHanded) {
++ getHandle().setLeftHanded(leftHanded);
++ }
+ // Paper end
+ }