aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0054-Be-a-bit-more-informative-in-maxHealth-exception.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-Server-Patches/0054-Be-a-bit-more-informative-in-maxHealth-exception.patch')
-rw-r--r--Spigot-Server-Patches/0054-Be-a-bit-more-informative-in-maxHealth-exception.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/Spigot-Server-Patches/0054-Be-a-bit-more-informative-in-maxHealth-exception.patch b/Spigot-Server-Patches/0054-Be-a-bit-more-informative-in-maxHealth-exception.patch
index 017b794085..f85ff0be80 100644
--- a/Spigot-Server-Patches/0054-Be-a-bit-more-informative-in-maxHealth-exception.patch
+++ b/Spigot-Server-Patches/0054-Be-a-bit-more-informative-in-maxHealth-exception.patch
@@ -1,11 +1,11 @@
-From a95f24eee446165a8c8006583b0de0f793c168da Mon Sep 17 00:00:00 2001
+From e38ec7282ebbcd915a447b0f169b44928de95196 Mon Sep 17 00:00:00 2001
From: kashike <[email protected]>
Date: Thu, 3 Mar 2016 02:18:39 -0600
Subject: [PATCH] Be a bit more informative in maxHealth exception
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
-index 27cd0d43d..61032eb2f 100644
+index 5fbd12471..062a0fd55 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
@@ -96,7 +96,10 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
@@ -19,7 +19,7 @@ index 27cd0d43d..61032eb2f 100644
+ + (this instanceof CraftPlayer ? ", player: " + this.getName() + ')' : ')'));
}
- if (health == 0) {
+ getHandle().setHealth((float) health);
--
-2.12.2.windows.2
+2.12.2