Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (iterator.hasNext()) { //Iterates through all blocks set between corners.
- Block block = iterator.next();
- if (block.getType() == Material.AIR || block.getType() == Material.getMaterial(175) || block.getType() == Material.getMaterial(31) || block.getType() == Material.getMaterial(38)) //Checks if block is any of these materials.
- blocksbefore.add(block.getLocation()); //Adds to blocks to be removed on method clearBlocks(boolean).
- if (kit.equalsIgnoreCase("Hikabrain")){ //Irrelevant. This is just setting the beds for Hikabrain.
- if (block.getType().equals(Material.BED_BLOCK)){
- if (bed1 == null)
- bed1 = block;
- else bed2 = block;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment