Ignoring wool block when spawning floor
This commit is contained in:
parent
73604bfa1a
commit
a0d82cd1c0
@ -277,7 +277,7 @@ public class DiscoParty {
|
||||
}
|
||||
|
||||
loc = player.getLocation();
|
||||
this.spawnFloor(world, new Location(world,loc.getBlockX(),loc.getBlockY()-1,loc.getBlockZ()));
|
||||
this.spawnFloor(world, new Location(world, loc.getBlockX(), loc.getBlockY() - 1, loc.getBlockZ()));
|
||||
}
|
||||
|
||||
void spawnSheep(World world, Location loc) {
|
||||
@ -304,12 +304,14 @@ public class DiscoParty {
|
||||
for (int x = loc.getBlockX() - this.radius; x < loc.getX() + this.radius; ++x) {
|
||||
for (int z = loc.getBlockZ() - this.radius; z < loc.getZ() + this.radius; ++z) {
|
||||
Block block = world.getBlockAt(x, loc.getBlockY(), z);
|
||||
if (block.getType() != Material.WOOL) {
|
||||
this.getFloorCache().add(block.getState());
|
||||
block.setType(Material.WOOL);
|
||||
this.getFloorBlocks().add(block);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Mark all guests for removal, then clear the array
|
||||
void removeAll() {
|
||||
|
Loading…
Reference in New Issue
Block a user