mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 12:05:53 +01:00
dc684c60d1
The new behavior of disconnect to block the current thread until the disconnect succeeded is better than throwing it off to happen at some point
28 lines
1011 B
Diff
28 lines
1011 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
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 fb29afb6517b009b81285adc9e6dca2eb7f74aee..921594a78ea511337434b29b5bc1a037eb30992c 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftMob.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftMob.java
|
|
@@ -144,6 +144,16 @@ 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
|
|
|
|
// Paper start
|