More fixes
This commit is contained in:
parent
f76ca1144d
commit
fd093318c6
2 changed files with 9 additions and 2 deletions
|
@ -43,7 +43,12 @@ public class CrashedShipFeature extends NBTStructureFeature {
|
|||
|
||||
@Override
|
||||
protected boolean canSpawn(StructureWorldAccess world, BlockPos pos, Random random) {
|
||||
return pos.getY() > 58 && world.getBlockState(pos.down()).isIn(EndTags.GEN_TERRAIN);
|
||||
long x = pos.getX() >> 4;
|
||||
long z = pos.getX() >> 4;
|
||||
if (x * x + z * z < 3600) {
|
||||
return false;
|
||||
}
|
||||
return pos.getY() > 5 && world.getBlockState(pos.down()).isIn(EndTags.GEN_TERRAIN);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue