From 59908c43c99ffc85d60e44dfab56212126a6bcd3 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Wed, 21 Sep 2011 16:28:46 +0100 Subject: [PATCH] Ok, this'll have to do for exp orbs. --- .../net/minecraft/server/EntityExperienceOrb.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/net/minecraft/server/EntityExperienceOrb.java b/src/main/java/net/minecraft/server/EntityExperienceOrb.java index 709af4d323..e9f09756a4 100644 --- a/src/main/java/net/minecraft/server/EntityExperienceOrb.java +++ b/src/main/java/net/minecraft/server/EntityExperienceOrb.java @@ -143,6 +143,19 @@ public class EntityExperienceOrb extends Entity { public static int b(int i) { // CraftBukkit start + if (i > 162670129) return i - 100000; + if (i > 81335063) return 81335063; + if (i > 40667527) return 40667527; + if (i > 20333759) return 20333759; + if (i > 10166857) return 10166857; + if (i > 5083423) return 5083423; + if (i > 2541701) return 2541701; + if (i > 1270849) return 1270849; + if (i > 635413) return 635413; + if (i > 317701) return 317701; + if (i > 158849) return 158849; + if (i > 79423) return 79423; + if (i > 39709) return 39709; if (i > 19853) return 19853; if (i > 9923) return 9923; if (i > 4957) return 4957;