aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches-Unmapped/0706-add-isDeeplySleeping-to-HumanEntity.patch
diff options
context:
space:
mode:
authorKyle Wood <[email protected]>2021-04-24 17:01:33 -0500
committerKyle Wood <[email protected]>2021-04-25 18:37:43 -0500
commit3093b81fee3064603c368ab934eddf66ce304433 (patch)
treecb99f05b5f31de92c41af4cc40b4bef5f3cbf573 /Spigot-Server-Patches-Unmapped/0706-add-isDeeplySleeping-to-HumanEntity.patch
parent1af696a05d21cbdd7b5a7170f95598c013257588 (diff)
downloadPaper-3093b81fee3064603c368ab934eddf66ce304433.tar.gz
Paper-3093b81fee3064603c368ab934eddf66ce304433.zip
Move patches
Diffstat (limited to 'Spigot-Server-Patches-Unmapped/0706-add-isDeeplySleeping-to-HumanEntity.patch')
-rw-r--r--Spigot-Server-Patches-Unmapped/0706-add-isDeeplySleeping-to-HumanEntity.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/Spigot-Server-Patches-Unmapped/0706-add-isDeeplySleeping-to-HumanEntity.patch b/Spigot-Server-Patches-Unmapped/0706-add-isDeeplySleeping-to-HumanEntity.patch
new file mode 100644
index 0000000000..5e1db72d90
--- /dev/null
+++ b/Spigot-Server-Patches-Unmapped/0706-add-isDeeplySleeping-to-HumanEntity.patch
@@ -0,0 +1,24 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Jake Potrebic <[email protected]>
+Date: Thu, 8 Apr 2021 17:36:10 -0700
+Subject: [PATCH] add isDeeplySleeping 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 b99423b3b413fc6364c6530a99e3c74dd406e1b4..f2b2db663198037ba4b7942815bfcd5ddd0e2a8d 100644
+--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java
++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java
+@@ -123,6 +123,13 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
+ }
+ }
+
++ // Paper start
++ @Override
++ public boolean isDeeplySleeping() {
++ return getHandle().isDeeplySleeping();
++ }
++ // Paper end
++
+ @Override
+ public int getSleepTicks() {
+ return getHandle().sleepTicks;