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