mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: b75eeca0 Boost light task priority to ensure it doesnt hold up chunk loads 3d2bc848 Ensure VillagerTrades doesn't load async - fixes #3495 e470f1ef Add more information to Timing Reports f4a47db6 Improve Thread Pool usage to allow single threads for single cpu servers a4fe910f Fix sounds when using worldedit regen command 70ad51a8 Updated Upstream (Bukkit/CraftBukkit) d7cfa4fa Improve legacy format serialization more
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From 5ae5f9e9d98de60e44d57aee71eeab472d3639a5 Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
Date: Sun, 5 May 2019 12:58:19 -0500
|
|
Subject: [PATCH] Implement LivingEntity safeFallDistance
|
|
|
|
---
|
|
.../java/org/bukkit/entity/LivingEntity.java | 16 ++++++++++++++++
|
|
1 file changed, 16 insertions(+)
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
index 7f73e4b92..1192fef87 100644
|
|
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
@@ -732,4 +732,20 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
|
*/
|
|
void setJumping(boolean jumping);
|
|
// Paper end
|
|
+
|
|
+ // Purpur start
|
|
+ /**
|
|
+ * Gets the distance (in blocks) this entity can safely fall without taking damage
|
|
+ *
|
|
+ * @return Safe fall distance
|
|
+ */
|
|
+ float getSafeFallDistance();
|
|
+
|
|
+ /**
|
|
+ * Set the distance (in blocks) this entity can safely fall without taking damage
|
|
+ *
|
|
+ * @param safeFallDistance Safe fall distance
|
|
+ */
|
|
+ void setSafeFallDistance(float safeFallDistance);
|
|
+ // Purpur end
|
|
}
|
|
--
|
|
2.24.0
|
|
|