update to v2.0.3

This commit is contained in:
Xanadu13
2023-02-11 18:59:40 +08:00
committed by GitHub
parent e884a64eea
commit 448da3339d
@@ -76,7 +76,6 @@ public class CreatureSpawnListener implements Listener {
int d0 = block.getX(); int d0 = block.getX();
int d1 = block.getY() + 1; int d1 = block.getY() + 1;
int d2 = block.getZ(); int d2 = block.getZ();
if(d0>=6 || d0<=-6 || d2>=6 || d2<=-6) return;
if(world.getBlockAt(d0, d1, d2).getType() != Material.AIR) return; if(world.getBlockAt(d0, d1, d2).getType() != Material.AIR) return;
Location cen = block.getLocation().clone().add(0.5,1,0.5); Location cen = block.getLocation().clone().add(0.5,1,0.5);
Collection<Entity> list = world.getNearbyEntities(cen,0.5,1,0.5); Collection<Entity> list = world.getNearbyEntities(cen,0.5,1,0.5);