Height fix

This commit is contained in:
paulevsGitch 2021-03-19 11:01:46 +03:00
parent b09ebaaa63
commit af673baf1f

View file

@ -44,7 +44,7 @@ public class EndSpikeFeatureMixin {
int z = spike.getCenterZ(); int z = spike.getCenterZ();
int radius = spike.getRadius(); int radius = spike.getRadius();
int minY = world.getChunk(x >> 4, z >> 4).sampleHeightmap(Type.WORLD_SURFACE, x & 15, z); int minY = world.getChunk(x >> 4, z >> 4).sampleHeightmap(Type.WORLD_SURFACE, x & 15, z);
int maxY = minY + spike.getHeight() - 30; int maxY = minY + spike.getHeight() - 64;
if (GeneratorOptions.replacePillars() && be_radiusInRange(radius)) { if (GeneratorOptions.replacePillars() && be_radiusInRange(radius)) {
radius--; radius--;