fixed behavior of falling blocks, fix #1660

This commit is contained in:
SpaceToad 2014-05-01 10:48:07 +02:00
parent 31b578959d
commit dec032c513

View file

@ -12,6 +12,7 @@ import java.util.ArrayList;
import java.util.LinkedList; import java.util.LinkedList;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.BlockFalling;
import net.minecraft.block.BlockLiquid; import net.minecraft.block.BlockLiquid;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
@ -162,10 +163,12 @@ public class SchematicBlock extends SchematicBlockBase {
@Override @Override
public BuildingStage getBuildStage () { public BuildingStage getBuildStage () {
if (block.isOpaqueCube()) { if (block instanceof BlockFalling) {
return BuildingStage.STANDALONE; return BuildingStage.SUPPORTED;
} else if (block instanceof BlockFluidBase || block instanceof BlockLiquid) { } else if (block instanceof BlockFluidBase || block instanceof BlockLiquid) {
return BuildingStage.EXPANDING; return BuildingStage.EXPANDING;
} else if (block.isOpaqueCube()) {
return BuildingStage.STANDALONE;
} else { } else {
return BuildingStage.SUPPORTED; return BuildingStage.SUPPORTED;
} }