mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-18 10:32:30 +00:00
Fix issue causing entities to spawn in ground
This commit is contained in:
parent
472493db3e
commit
57f18477e4
@ -67,7 +67,7 @@ public class EntityFeature implements Feature {
|
|||||||
}
|
}
|
||||||
if(canSpawn) {
|
if(canSpawn) {
|
||||||
Debug.info("Spawning entity at " + attempt);
|
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.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user