Added stairs as air sealer since vanilla reports a slab bounding box
This commit is contained in:
parent
8f03d7c6f8
commit
e2b780eecd
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@ import cr0s.warpdrive.api.ExceptionChunkNotLoaded;
|
|||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockDynamicLiquid;
|
||||
import net.minecraft.block.BlockPane;
|
||||
import net.minecraft.block.BlockStairs;
|
||||
import net.minecraft.block.BlockStaticLiquid;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
@ -235,6 +236,10 @@ public class StateAir {
|
|||
} else if (block instanceof BlockAbstractOmnipanel) {
|
||||
typeBlock = BLOCK_SEALER;
|
||||
|
||||
} else if (block instanceof BlockStairs) {
|
||||
// stairs are reporting slab collision box, so we can't detect them automatically
|
||||
typeBlock = BLOCK_SEALER;
|
||||
|
||||
} else if (block instanceof BlockStaticLiquid || block instanceof BlockDynamicLiquid) {// vanilla liquid (water & lava sources or flowing)
|
||||
// metadata = 0 for source, 8/9 for vertical flow
|
||||
// 2 superposed sources would still be 0, so we can't use metadata. Instead, we're testing explicitly the block above
|
||||
|
|
Loading…
Reference in a new issue