Skip to content

Commit

Permalink
Fix grave generation, #289
Browse files Browse the repository at this point in the history
  • Loading branch information
NightKosh committed Nov 2, 2018
1 parent 2abb123 commit eea15d8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -780,7 +780,7 @@ public static int getGround(World world, int x, int y, int z) {
public static boolean canGenerateGraveAtCoordinates(World world, BlockPos pos) {
IBlockState state = world.getBlockState(pos);
IBlockState stateDown = world.getBlockState(pos.down());
return stateDown.getBlock().getMaterial(stateDown).isSolid() &&
return stateDown.getBlock().getMaterial(stateDown).isSolid() && stateDown.getBlock().isFullCube(stateDown) &&
(world.isAirBlock(pos) || state.getBlock().getMaterial(state).isLiquid() || state.getBlock().getMaterial(state).isReplaceable());
}

Expand Down

0 comments on commit eea15d8

Please sign in to comment.