View difference between Paste ID: Rgdv7zRw and 6SyU6w7h
SHOW: | | - or go back to the newest paste.
1-
 for(Location location: doorblocks.keySet()){
1+
        for (Location location : doorblocks.keySet()) {
2
            System.out.println("Working");
3-
            if(location.getWorld() == world){
3+
            if (location.getWorld() == world) {
4-
            location.getBlock().setTypeIdAndData(Material.WOOD_DOOR.getId(),doorblocks.get(location), false);
4+
                Block block = location.getBlock();
5
                byte doordata = doorblocks.get(location);
6
                block.setTypeIdAndData(Material.WOOD_DOOR.getId(), doordata, false);
7
8
            }
9
        }