diff options
author | Glare <[email protected]> | 2021-12-09 20:02:41 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-09 18:02:41 -0800 |
commit | dce79f333c1f3f60335163d8fe1050d424722a92 (patch) | |
tree | 12559c6101a93eaea0a2fd7147151caaf5d322e2 /patches/server/0727-Left-handed-API.patch | |
parent | 4e355c488dc72e3c6701c69d2e4d6099449671b4 (diff) | |
download | Paper-dce79f333c1f3f60335163d8fe1050d424722a92.tar.gz Paper-dce79f333c1f3f60335163d8fe1050d424722a92.zip |
Update Log4J (#7069)
Diffstat (limited to 'patches/server/0727-Left-handed-API.patch')
-rw-r--r-- | patches/server/0727-Left-handed-API.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/patches/server/0727-Left-handed-API.patch b/patches/server/0727-Left-handed-API.patch new file mode 100644 index 0000000000..dd1acc7723 --- /dev/null +++ b/patches/server/0727-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 0613ab9979a32a005fa2cbf24125022713daca3a..cf0be5ef01bddaabbfd11f54b2dacd68c68ad16a 100644 +--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftMob.java ++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftMob.java +@@ -134,5 +134,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 + } |