@@ -1,8 +1,8 @@
|
||||
--- a/net/minecraft/server/EntityExperienceOrb.java
|
||||
+++ b/net/minecraft/server/EntityExperienceOrb.java
|
||||
@@ -2,6 +2,12 @@
|
||||
|
||||
import java.util.Map.Entry;
|
||||
--- a/net/minecraft/world/entity/EntityExperienceOrb.java
|
||||
+++ b/net/minecraft/world/entity/EntityExperienceOrb.java
|
||||
@@ -16,6 +16,12 @@
|
||||
import net.minecraft.world.level.World;
|
||||
import net.minecraft.world.phys.Vec3D;
|
||||
|
||||
+// CraftBukkit start
|
||||
+import org.bukkit.craftbukkit.event.CraftEventFactory;
|
||||
@@ -13,7 +13,7 @@
|
||||
public class EntityExperienceOrb extends Entity {
|
||||
|
||||
public int b;
|
||||
@@ -36,6 +42,7 @@
|
||||
@@ -50,6 +56,7 @@
|
||||
@Override
|
||||
public void tick() {
|
||||
super.tick();
|
||||
@@ -21,7 +21,7 @@
|
||||
if (this.d > 0) {
|
||||
--this.d;
|
||||
}
|
||||
@@ -72,7 +79,22 @@
|
||||
@@ -86,7 +93,22 @@
|
||||
this.targetPlayer = null;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
Vec3D vec3d = new Vec3D(this.targetPlayer.locX() - this.locX(), this.targetPlayer.locY() + (double) this.targetPlayer.getHeadHeight() / 2.0D - this.locY(), this.targetPlayer.locZ() - this.locZ());
|
||||
double d1 = vec3d.g();
|
||||
|
||||
@@ -155,13 +177,19 @@
|
||||
@@ -169,13 +191,19 @@
|
||||
if (!itemstack.isEmpty() && itemstack.f()) {
|
||||
int i = Math.min(this.c(this.value), itemstack.getDamage());
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
}
|
||||
|
||||
this.die();
|
||||
@@ -183,6 +211,24 @@
|
||||
@@ -197,6 +225,24 @@
|
||||
}
|
||||
|
||||
public static int getOrbValue(int i) {
|
||||
|
||||
Reference in New Issue
Block a user