summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntitySlime.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntitySlime.patch')
-rw-r--r--nms-patches/EntitySlime.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/nms-patches/EntitySlime.patch b/nms-patches/EntitySlime.patch
index c5cb1648..c2696a14 100644
--- a/nms-patches/EntitySlime.patch
+++ b/nms-patches/EntitySlime.patch
@@ -1,16 +1,16 @@
--- a/net/minecraft/server/EntitySlime.java
+++ b/net/minecraft/server/EntitySlime.java
-@@ -1,5 +1,9 @@
+@@ -1,6 +1,9 @@
package net.minecraft.server;
+ import javax.annotation.Nullable;
+// CraftBukkit start
+import org.bukkit.event.entity.SlimeSplitEvent;
+// CraftBukkit end
-+
+
public class EntitySlime extends EntityInsentient implements IMonster {
- private static final DataWatcherObject<Integer> bt = DataWatcher.a(EntitySlime.class, DataWatcherRegistry.b);
-@@ -134,6 +138,18 @@
+@@ -136,6 +139,18 @@
if (!this.world.isClientSide && i > 1 && this.getHealth() <= 0.0F) {
int j = 2 + this.random.nextInt(3);
@@ -29,7 +29,7 @@
for (int k = 0; k < j; ++k) {
float f = ((float) (k % 2) - 0.5F) * (float) i / 4.0F;
float f1 = ((float) (k / 2) - 0.5F) * (float) i / 4.0F;
-@@ -149,7 +165,7 @@
+@@ -151,7 +166,7 @@
entityslime.setSize(i / 2);
entityslime.setPositionRotation(this.locX + (double) f, this.locY + 0.5D, this.locZ + (double) f1, this.random.nextFloat() * 360.0F, 0.0F);