Ignoring wool block when spawning floor
This commit is contained in:
parent
73604bfa1a
commit
a0d82cd1c0
@ -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