mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-08-30 05:40:34 +00:00
Fix issue with EntityFeature spawning
This commit is contained in:
@@ -58,7 +58,10 @@ public class EntityFeature implements Feature {
|
|||||||
attempt.subtract(0, 1, 0);
|
attempt.subtract(0, 1, 0);
|
||||||
yv--;
|
yv--;
|
||||||
|
|
||||||
if(!stand.contains(on.getType())) continue;
|
if(!stand.contains(on.getType())) {
|
||||||
|
canSpawn = false;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
for(int j = 1; j < inSize + 1; j++)
|
for(int j = 1; j < inSize + 1; j++)
|
||||||
if(!in.contains(on.getRelative(BlockFace.UP, j).getType())) canSpawn = false;
|
if(!in.contains(on.getRelative(BlockFace.UP, j).getType())) canSpawn = false;
|
||||||
@@ -99,7 +102,10 @@ public class EntityFeature implements Feature {
|
|||||||
attempt.subtract(0, 1, 0);
|
attempt.subtract(0, 1, 0);
|
||||||
yv--;
|
yv--;
|
||||||
|
|
||||||
if(!stand.contains(on.getType())) continue;
|
if(!stand.contains(on.getType())) {
|
||||||
|
canSpawn = false;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
for(int j = 1; j < inSize + 1; j++)
|
for(int j = 1; j < inSize + 1; j++)
|
||||||
if(!in.contains(on.getRelative(BlockFace.UP, j).getType())) canSpawn = false;
|
if(!in.contains(on.getRelative(BlockFace.UP, j).getType())) canSpawn = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user