diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-21 16:28:46 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-21 16:28:46 +0100 |
commit | 59908c43c99ffc85d60e44dfab56212126a6bcd3 (patch) | |
tree | c475670b9a1964d79187cb201401a19198026a84 /src/main/java/net/minecraft/server/EntityExperienceOrb.java | |
parent | 02f6e99d9ee749890c63d50c682bc3e001f20c27 (diff) | |
download | craftbukkit-59908c43c99ffc85d60e44dfab56212126a6bcd3.tar craftbukkit-59908c43c99ffc85d60e44dfab56212126a6bcd3.tar.gz craftbukkit-59908c43c99ffc85d60e44dfab56212126a6bcd3.tar.lz craftbukkit-59908c43c99ffc85d60e44dfab56212126a6bcd3.tar.xz craftbukkit-59908c43c99ffc85d60e44dfab56212126a6bcd3.zip |
Ok, this'll have to do for exp orbs.
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityExperienceOrb.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityExperienceOrb.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityExperienceOrb.java b/src/main/java/net/minecraft/server/EntityExperienceOrb.java index 709af4d3..e9f09756 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; |