Fixed: Mob doesnt spawn in dungeons

This commit is contained in:
Frank Baumann 2012-10-02 23:54:14 +02:00
parent 07f6b730be
commit b0c0f372dd

View File

@ -36,7 +36,7 @@ public class MobSpawner {
World world=this.block.getWorld();
for(Player player:world.getPlayers()){
if(player.getWorld()!=world){
if(player.getWorld()==world){
if(player.getLocation().distance(this.block.getLocation())<this.radius){
if(this.interval<=0){
LivingEntity mob=world.spawnCreature(this.block.getLocation(), this.mob);