Adjust spawn location coordinates for target blocks
Modified the spawnable target block location by adding 1 to the Y-coordinate. This change ensures that entities spawn above the target block, preventing them from spawning inside it or in obstructed areas.
This commit is contained in:
1 parent
fb2bbb70d4
commit
941b7d0d8f
1 file changed
+1
-1
@@ -16,7 +16,7 @@ public class SpawnableTargetBlock {
|
||||
while (iter.hasNext()) {
|
||||
Block block = iter.next();
|
||||
if (isSpawnable(block)) {
|
||||
return Optional.of(block.getLocation());
|
||||
return Optional.of(block.getLocation().add(0, 1, 0));
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
|
||||
Reference in new issue
Block a user