Skip to content

Commit 3be00dc

Browse files
committed
use relative positioning
1 parent 80af932 commit 3be00dc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/vfast/backrooms/interfaces/Noclippable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public interface Noclippable {
2525
RandomSource random = level.getRandom();
2626
@Nullable BlockPos finalPos = null;
2727

28-
for (int xx = x; finalPos == null; xx = Mth.floor(Mth.randomBetween(random, -radius, radius))) {
29-
for (int zz = z; finalPos == null; zz = Mth.floor(Mth.randomBetween(random, -radius, radius))) {
28+
for (int xx = x; finalPos == null; xx = x + Mth.floor(Mth.randomBetween(random, -radius, radius))) {
29+
for (int zz = z; finalPos == null; zz = z + Mth.floor(Mth.randomBetween(random, -radius, radius))) {
3030
BlockPos lookingPos = new BlockPos(xx, y, zz);
3131
BlockState lookingState = level.getBlockState(lookingPos);
3232
Block lookingBlock = lookingState.getBlock();

0 commit comments

Comments
 (0)