fixed behavior of falling blocks, fix #1660
This commit is contained in:
parent
31b578959d
commit
dec032c513
1 changed files with 5 additions and 2 deletions
|
@ -12,6 +12,7 @@ import java.util.ArrayList;
|
|||
import java.util.LinkedList;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockFalling;
|
||||
import net.minecraft.block.BlockLiquid;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
@ -162,10 +163,12 @@ public class SchematicBlock extends SchematicBlockBase {
|
|||
|
||||
@Override
|
||||
public BuildingStage getBuildStage () {
|
||||
if (block.isOpaqueCube()) {
|
||||
return BuildingStage.STANDALONE;
|
||||
if (block instanceof BlockFalling) {
|
||||
return BuildingStage.SUPPORTED;
|
||||
} else if (block instanceof BlockFluidBase || block instanceof BlockLiquid) {
|
||||
return BuildingStage.EXPANDING;
|
||||
} else if (block.isOpaqueCube()) {
|
||||
return BuildingStage.STANDALONE;
|
||||
} else {
|
||||
return BuildingStage.SUPPORTED;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue