1.21 Port IV

This commit is contained in:
IThundxr 2024-07-10 13:03:07 -04:00
parent e374365ce4
commit 10d032c53e
No known key found for this signature in database
GPG Key ID: E291EC97BAF935E6

View File

@ -15,7 +15,7 @@ abstract class MinecraftMixin {
@Shadow
public ClientLevel level;
@Inject(method = "setLevel(Lnet/minecraft/client/multiplayer/ClientLevel;)V", at = @At("HEAD"))
@Inject(method = "setLevel(Lnet/minecraft/client/multiplayer/ClientLevel;Lnet/minecraft/client/gui/screens/ReceivingLevelScreen$Reason;)V", at = @At("HEAD"))
private void flywheel$onSetLevel(CallbackInfo ci) {
if (level != null) {
LevelAttached.invalidateLevel(level);