Skip to content

Commit 7aea11b

Browse files
committed
1.21.2+ fix?
1 parent 8dcc19b commit 7aea11b

File tree

8 files changed

+9
-2
lines changed

8 files changed

+9
-2
lines changed
File renamed without changes.
File renamed without changes.

1.19-1.21/src/main/java/net/set/spawn/mod/mixin/ServerPlayerEntityMixin.java renamed to 1.19-1.21.4/src/main/java/net/set/spawn/mod/mixin/ServerPlayerEntityMixin.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,14 @@ private void failOnNonRandomSpawns(CallbackInfo ci, @Share("seed") LocalRef<Seed
8888

8989
@Group
9090
@Dynamic
91-
@Inject(method = "method_14245(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;", at = @At(value = "INVOKE", target = "Lnet/minecraft/class_3218;method_8587(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Z", ordinal = 1), require = 0)
91+
@Inject(
92+
method = "method_14245(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;",
93+
at = {
94+
@At(value = "INVOKE", target = "Lnet/minecraft/class_3218;method_8587(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Z", ordinal = 1),
95+
@At(value = "INVOKE", target = "Lnet/minecraft/class_3222;method_61274(Lnet/minecraft/class_3218;Lnet/minecraft/class_238;)Z", ordinal = 1)
96+
},
97+
require = 0, allow = 1
98+
)
9299
private void failOnNonRandomSpawns2(CallbackInfoReturnable<Boolean> cir, @Share("seed") LocalRef<Seed> seed, @Share("isRandomSpawn") LocalBooleanRef isRandomSpawn) {
93100
if (!isRandomSpawn.get() && seed.get() != null) {
94101
this.setSpawnError = "Failed to apply SetSpawn configuration because the spawn was not random. Not overriding player spawnpoint.";

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ include "1.12"
1818
include "1.8-1.12.2"
1919
include "1.13.x"
2020
include "1.14-1.18.2"
21-
include "1.19-1.21"
21+
include "1.19-1.21.4"

0 commit comments

Comments
 (0)