diff --git a/CraftBukkit-Patches/0070-Cap-Minimum-Velocity.patch b/CraftBukkit-Patches/0070-Cap-Minimum-Velocity.patch new file mode 100644 index 000000000..c179aedf3 --- /dev/null +++ b/CraftBukkit-Patches/0070-Cap-Minimum-Velocity.patch @@ -0,0 +1,26 @@ +From 9ea913497512111e043bb0007d0765a9003ce979 Mon Sep 17 00:00:00 2001 +From: md_5 +Date: Mon, 5 Aug 2013 20:17:20 +1000 +Subject: [PATCH] Cap Minimum Velocity + + +diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +index 65a77dc..abac59c 100644 +--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java ++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +@@ -178,9 +178,9 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity { + } + + public void setVelocity(Vector vel) { +- entity.motX = vel.getX(); +- entity.motY = vel.getY(); +- entity.motZ = vel.getZ(); ++ entity.motX = Math.max( vel.getX(), 0.001 ); ++ entity.motY = Math.max( vel.getY(), 0.001 ); ++ entity.motZ = Math.max( vel.getZ(), 0.001 ); + entity.velocityChanged = true; + } + +-- +1.8.1.2 +