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 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue