diff options
author | me4502 <mnmiller1@hotmail.com> | 2013-03-22 19:13:32 +1000 |
---|---|---|
committer | Nate Mortensen <nate.richard.mortensen@gmail.com> | 2013-03-23 10:58:01 -0600 |
commit | b10474253cad44f18781cecbe724e3d97c2f7387 (patch) | |
tree | 9d497746634010daf325b43d4eca206fe9194d2b /src | |
parent | 3ad423af07ae1e9532c0d1bffeb12937d31c019f (diff) | |
download | craftbukkit-b10474253cad44f18781cecbe724e3d97c2f7387.tar craftbukkit-b10474253cad44f18781cecbe724e3d97c2f7387.tar.gz craftbukkit-b10474253cad44f18781cecbe724e3d97c2f7387.tar.lz craftbukkit-b10474253cad44f18781cecbe724e3d97c2f7387.tar.xz craftbukkit-b10474253cad44f18781cecbe724e3d97c2f7387.zip |
Fire VehicleEnterEvent for loaded chunks only. Fixes BUKKIT-3831
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/Entity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java index 2e7cb431..6c00b9cf 100644 --- a/src/main/java/net/minecraft/server/Entity.java +++ b/src/main/java/net/minecraft/server/Entity.java @@ -1432,7 +1432,7 @@ public abstract class Entity { this.vehicle = null; } else { // CraftBukkit start - if ((this.bukkitEntity instanceof LivingEntity) && (entity.getBukkitEntity() instanceof Vehicle)) { + if ((this.bukkitEntity instanceof LivingEntity) && (entity.getBukkitEntity() instanceof Vehicle) && entity.world.isChunkLoaded((int) entity.locX >> 4, (int) entity.locZ >> 4)) { VehicleEnterEvent event = new VehicleEnterEvent((Vehicle) entity.getBukkitEntity(), this.bukkitEntity); pluginManager.callEvent(event); |