Skip to content

Commit c717435

Browse files
committed
1.18 crash fix
I should change this injector, but I don't trust that first BlockPos local to stay around
1 parent 73af963 commit c717435

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

1.14-1.18.2/src/main/java/net/set/spawn/mod/mixin/ServerPlayerEntityMixin.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ private int setSpawn(
8080
value = "INVOKE",
8181
target = "Lnet/minecraft/server/network/SpawnLocating;findOverworldSpawn(Lnet/minecraft/server/world/ServerWorld;IIZ)Lnet/minecraft/util/math/BlockPos;"
8282
),
83+
// 1.18+ findOverworldSpawn, no boolean
84+
@At(
85+
value = "INVOKE",
86+
target = "Lnet/minecraft/class_5322;method_29194(Lnet/minecraft/class_3218;II)Lnet/minecraft/class_2338;"
87+
),
8388
@At(
8489
value = "INVOKE",
8590
// Dimension#getTopSpawningBlockPosition

0 commit comments

Comments
 (0)