mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-18 10:32:30 +00:00
Fix issue with EntityFeature spawning
This commit is contained in:
parent
ca5fb57b0b
commit
e5c5557398
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user