mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 05:40:00 +03:00
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockFalling.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockFalling.java
|
|
@@ -47,7 +47,7 @@
|
|
|
|
private void checkFallable(World worldIn, BlockPos pos)
|
|
{
|
|
- if (canFallThrough(worldIn.getBlockState(pos.down())) && pos.getY() >= 0)
|
|
+ if ((worldIn.isAirBlock(pos.down()) || canFallThrough(worldIn.getBlockState(pos.down()))) && pos.getY() >= 0)
|
|
{
|
|
int i = 32;
|
|
|
|
@@ -62,17 +62,18 @@
|
|
}
|
|
else
|
|
{
|
|
+ IBlockState state = worldIn.getBlockState(pos);
|
|
worldIn.setBlockToAir(pos);
|
|
BlockPos blockpos;
|
|
|
|
- for (blockpos = pos.down(); canFallThrough(worldIn.getBlockState(blockpos)) && blockpos.getY() > 0; blockpos = blockpos.down())
|
|
+ for (blockpos = pos.down(); (worldIn.isAirBlock(blockpos) || canFallThrough(worldIn.getBlockState(blockpos))) && blockpos.getY() > 0; blockpos = blockpos.down())
|
|
{
|
|
;
|
|
}
|
|
|
|
if (blockpos.getY() > 0)
|
|
{
|
|
- worldIn.setBlockState(blockpos.up(), this.getDefaultState());
|
|
+ worldIn.setBlockState(blockpos.up(), state); //Forge: Fix loss of state information during world gen.
|
|
}
|
|
}
|
|
}
|