mojira.dev
MC-218504

Teleporting to large distances causes a Crash

The bug
I was Testing today with Teleporting to high distances and I noticed that the aquafers were gone after 33,554,432 blocks, I teleported to the Exact coordinate they stopped generating and the game just crashed.

How to Reproduce
1. Remove the Worldborder and 30 Million limit
2. Create a new World
3. Type "/tp 33554432 100 0"
4. Game crash

Stacktrace

21w08b crash

Description: Ticking player

java.lang.IllegalArgumentException: Start element (9223367638808264704) is larger than end element (-9223372036854775808)
	at it.unimi.dsi.fastutil.longs.LongAVLTreeSet$Subset.<init>(LongAVLTreeSet.java:1117)
	at it.unimi.dsi.fastutil.longs.LongAVLTreeSet.subSet(LongAVLTreeSet.java:1078)
	at net.minecraft.class_5573.method_31777(class_5573.java:56)
	at net.minecraft.class_5573.method_31783(class_5573.java:123)
	at net.minecraft.class_5578.method_31807(class_5578.java:42)
	at net.minecraft.class_1937.method_8333(class_1937.java:612)
	at net.minecraft.class_1309.method_6070(class_1309.java:2654)
	at net.minecraft.class_1309.method_6007(class_1309.java:2606)
	at net.minecraft.class_1657.method_6007(class_1657.java:558)
	at net.minecraft.class_1309.method_5773(class_1309.java:2287)
	at net.minecraft.class_1657.method_5773(class_1657.java:274)
	at net.minecraft.class_3222.method_14226(class_3222.java:417)
	at net.minecraft.class_3244.method_18784(class_3244.java:218)
	at net.minecraft.class_2535.method_10754(class_2535.java:239)
	at net.minecraft.class_3242.method_14357(class_3242.java:183)
	at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:884)
	at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:813)
	at net.minecraft.class_1132.method_3748(class_1132.java:93)
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:672)
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:259)
	at java.lang.Thread.run(Unknown Source)

Attachments

Comments 4

Cannot reproduce. "Invalid position for teleport".

What is the command to remove the worldborder?

I removed the border through code and changed the 30M value to the 32-Bit integer limit.

Invalid as the game has been modified in order to cause this crash.

Welcome 234

(Unassigned)

Unconfirmed

(Unassigned)

21w08b, 21w10a

Retrieved