From 8623b0978bb124ef0c144091af204c167ad775de Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Tue, 2 Dec 2014 15:26:23 +0100 Subject: [PATCH] Fix server-crash on king silme death #1209 --- src/main/java/tconstruct/world/entity/KingBlueSlime.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/tconstruct/world/entity/KingBlueSlime.java b/src/main/java/tconstruct/world/entity/KingBlueSlime.java index 61f4b35d..70eb0d2f 100644 --- a/src/main/java/tconstruct/world/entity/KingBlueSlime.java +++ b/src/main/java/tconstruct/world/entity/KingBlueSlime.java @@ -60,7 +60,9 @@ public class KingBlueSlime extends SlimeBase implements IBossDisplayData { double x = Math.cos(r); double z = Math.sin(r); entityslime.setLocationAndAngles(this.posX - 1d + x, this.posY + 0.5D, this.posZ - 1d + z, this.rand.nextFloat() * 360.0F, 0.0F); - entityslime.setVelocity(x, -0.5d - rand.nextDouble(), z); + entityslime.motionX = x; + entityslime.motionY = -0.5d - rand.nextDouble(); + entityslime.motionZ = z; this.worldObj.spawnEntityInWorld(entityslime); } }