Fix issue causing entities to spawn in ground

This commit is contained in:
dfsek 2020-11-04 21:38:18 -07:00
parent 472493db3e
commit 57f18477e4

View File

@ -67,7 +67,7 @@ public class EntityFeature implements Feature {
}
if(canSpawn) {
Debug.info("Spawning entity at " + attempt);
chunk.getWorld().spawnEntity(attempt.add(0.5, 1, 0.5), type); // Add 0.5 to X & Z so entity spawns in center of block.
chunk.getWorld().spawnEntity(attempt.add(0.5, 2, 0.5), type); // Add 0.5 to X & Z so entity spawns in center of block.
}
}
}