From 5a8ec0cb9d91b54cc8b45d0a97f4902581ab317b Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Wed, 21 Sep 2011 16:07:19 +0100 Subject: [PATCH] This should reduce the amount of exp-orbs quite a bunch --- src/main/java/net/minecraft/server/EntityExperienceOrb.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/net/minecraft/server/EntityExperienceOrb.java b/src/main/java/net/minecraft/server/EntityExperienceOrb.java index b11c8754f2..a2937ea17a 100644 --- a/src/main/java/net/minecraft/server/EntityExperienceOrb.java +++ b/src/main/java/net/minecraft/server/EntityExperienceOrb.java @@ -142,6 +142,12 @@ public class EntityExperienceOrb extends Entity { } public static int b(int i) { + // CraftBukkit start + if (i > 4957) return 4957; + if (i > 9923) return 9923; + if (i > 19853) return 19853; + // CraftBukkit end + return i >= 2477 ? 2477 : (i >= 1237 ? 1237 : (i >= 617 ? 617 : (i >= 307 ? 307 : (i >= 149 ? 149 : (i >= 73 ? 73 : (i >= 37 ? 37 : (i >= 17 ? 17 : (i >= 7 ? 7 : (i >= 3 ? 3 : 1))))))))); } }