Ignoring wool block when spawning floor

This commit is contained in:
RangerMauve 2013-11-09 16:05:54 -05:00
parent 73604bfa1a
commit a0d82cd1c0

View File

@ -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() {