mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-02-16 12:21:30 +01:00
Fixed: Mob doesnt spawn in dungeons
This commit is contained in:
parent
07f6b730be
commit
b0c0f372dd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user