View difference between Paste ID: UJBCrXqN and cpu2kwhx
SHOW: | | - or go back to the newest paste.
1
2
import org.apache.commons.lang.Validate;
3
4
5
        for (Location location : doorblocks.keySet()) {
6-
                byte raw = doordata.byteValue();
6+
7-
                block.setTypeIdAndData(Material.WOOD_DOOR.getId(), raw, false);
7+
8
                Block block = location.getBlock();
9
                Validate.notNull(block, "null block");
10
                Validate.notNull(doorblocks, "null lookup");
11
                Byte doordata = doorblocks.get(location);
12
                Validate.notNull(doordata, "null unboxing");
13
                Valdiate.notNull(Material.WOOD_DOOR, "well that doesn't make sense");
14
                int id = Material.WOOD_DOOR.getId();
15
                block.setTypeIdAndData(id, raw, false);
16
17
            }
18
        }