diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-21 16:07:19 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-21 16:07:19 +0100 |
commit | 5a8ec0cb9d91b54cc8b45d0a97f4902581ab317b (patch) | |
tree | f69d530746d534e4687717cc79f2f4b785997e05 /src/main | |
parent | 20ddc944bb38b96ac5deb742126c53b9989b5c31 (diff) | |
download | craftbukkit-5a8ec0cb9d91b54cc8b45d0a97f4902581ab317b.tar craftbukkit-5a8ec0cb9d91b54cc8b45d0a97f4902581ab317b.tar.gz craftbukkit-5a8ec0cb9d91b54cc8b45d0a97f4902581ab317b.tar.lz craftbukkit-5a8ec0cb9d91b54cc8b45d0a97f4902581ab317b.tar.xz craftbukkit-5a8ec0cb9d91b54cc8b45d0a97f4902581ab317b.zip |
This should reduce the amount of exp-orbs quite a bunch
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityExperienceOrb.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityExperienceOrb.java b/src/main/java/net/minecraft/server/EntityExperienceOrb.java index b11c8754..a2937ea1 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))))))))); } } |