mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-15 06:54:21 +01:00
1.21 Port IV
This commit is contained in:
parent
e374365ce4
commit
10d032c53e
@ -15,7 +15,7 @@ abstract class MinecraftMixin {
|
|||||||
@Shadow
|
@Shadow
|
||||||
public ClientLevel level;
|
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) {
|
private void flywheel$onSetLevel(CallbackInfo ci) {
|
||||||
if (level != null) {
|
if (level != null) {
|
||||||
LevelAttached.invalidateLevel(level);
|
LevelAttached.invalidateLevel(level);
|
||||||
|
Loading…
Reference in New Issue
Block a user