Skip to content

Commit

Permalink
Update mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Sep 27, 2024
1 parent 74de8cd commit e9f8af5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ private int onServerExit(int original) {
return original + LoadDiagnostics.loadErrors().size();
}

@ModifyExpressionValue(method = "startTests", at = @At(value = "NEW", target = "Lnet/minecraft/core/BlockPos;Z"))
private BlockPos startTests(BlockPos blockpos, ServerLevel level) {
@ModifyExpressionValue(method = "startTests", at = @At(value = "NEW", target = "(III)Lnet/minecraft/core/BlockPos;"))
private BlockPos startTests(BlockPos original, ServerLevel level) {
WorldBorder border = level.getWorldBorder();
int x = level.random.nextIntBetweenInclusive((int) border.getMinX(), (int) border.getMaxX());
int z = level.random.nextIntBetweenInclusive((int) border.getMinZ(), (int) border.getMaxZ());
return new BlockPos(x, -59, z);
return new BlockPos(x, original.getY(), z);
}
}

0 comments on commit e9f8af5

Please sign in to comment.