Adjusted some BlockType flags.

Beds, glass panes and fence gates should no longer be placed last
Fence gates can no longer be passed through, since they can't, if they're closed.
This commit is contained in:
TomyLobo 2011-09-16 05:46:07 +02:00
parent 7798319896
commit 633145d796

View File

@ -275,7 +275,6 @@ public String getName() {
private static final Set<Integer> shouldPlaceLast = new HashSet<Integer>();
static {
shouldPlaceLast.add(BlockID.SAPLING);
shouldPlaceLast.add(BlockID.BED);
shouldPlaceLast.add(BlockID.POWERED_RAIL);
shouldPlaceLast.add(BlockID.DETECTOR_RAIL);
shouldPlaceLast.add(BlockID.LONG_GRASS);
@ -308,9 +307,7 @@ public String getName() {
shouldPlaceLast.add(BlockID.REDSTONE_REPEATER_OFF);
shouldPlaceLast.add(BlockID.REDSTONE_REPEATER_ON);
shouldPlaceLast.add(BlockID.TRAP_DOOR);
shouldPlaceLast.add(BlockID.GLASS_PANE);
shouldPlaceLast.add(BlockID.VINE);
shouldPlaceLast.add(BlockID.FENCE_GATE);
}
/**
@ -369,7 +366,6 @@ public boolean shouldPlaceLast() {
canPassThrough.add(BlockID.PORTAL);
canPassThrough.add(BlockID.REDSTONE_REPEATER_OFF);
canPassThrough.add(BlockID.REDSTONE_REPEATER_ON);
canPassThrough.add(BlockID.FENCE_GATE);
canPassThrough.add(BlockID.VINE);
}