summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityEgg.java
diff options
context:
space:
mode:
authorAndrew Ardill <andrew.ardill@gmail.com>2011-12-05 19:13:10 +1100
committerAndrew Ardill <andrew.ardill@gmail.com>2011-12-05 19:23:40 +1100
commitb1a3aa602a8021228e3cdf429cb613c590ceb122 (patch)
tree8021307349caffcf78fa6e7aefbf0cfe0d33125a /src/main/java/net/minecraft/server/EntityEgg.java
parent8363eadcabe1ac9277842e75d56a7409ef6e3ced (diff)
downloadcraftbukkit-b1a3aa602a8021228e3cdf429cb613c590ceb122.tar
craftbukkit-b1a3aa602a8021228e3cdf429cb613c590ceb122.tar.gz
craftbukkit-b1a3aa602a8021228e3cdf429cb613c590ceb122.tar.lz
craftbukkit-b1a3aa602a8021228e3cdf429cb613c590ceb122.tar.xz
craftbukkit-b1a3aa602a8021228e3cdf429cb613c590ceb122.zip
Clean-up some events to maintain general style
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityEgg.java')
-rw-r--r--src/main/java/net/minecraft/server/EntityEgg.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityEgg.java b/src/main/java/net/minecraft/server/EntityEgg.java
index 5211e2e3..9b023156 100644
--- a/src/main/java/net/minecraft/server/EntityEgg.java
+++ b/src/main/java/net/minecraft/server/EntityEgg.java
@@ -1,5 +1,6 @@
package net.minecraft.server;
+import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.Animals;
import org.bukkit.entity.CreatureType;
@@ -36,7 +37,7 @@ public class EntityEgg extends EntityProjectile {
Projectile projectile = (Projectile) this.getBukkitEntity();
EntityDamageByEntityEvent event = new EntityDamageByEntityEvent(projectile, damagee, EntityDamageEvent.DamageCause.PROJECTILE, 0);
- this.world.getServer().getPluginManager().callEvent(event);
+ Bukkit.getPluginManager().callEvent(event);
if (event.isCancelled()) {
stick = !projectile.doesBounce();