Merge 1.19.2 into 1.19.4
This commit is contained in:
commit
b64fefa73c
|
|
@ -20,7 +20,7 @@ public class MinecraftMixin {
|
|||
|
||||
@Inject(method = "tick", at = @At("HEAD"))
|
||||
private void onClientTick(CallbackInfo ci) {
|
||||
if(this.overlay == null) {
|
||||
if(this.overlay == null && ModernFixClient.INSTANCE != null) {
|
||||
ModernFixClient.INSTANCE.onGameLaunchFinish();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
package org.embeddedt.modernfix.forge.mixin.perf.resource_key_equality;
|
||||
|
||||
import net.minecraft.resources.ResourceKey;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
|
||||
@Mixin(ResourceKey.class)
|
||||
public class ResourceKeyMixin {
|
||||
/**
|
||||
* @author embeddedt
|
||||
* @reason ResourceKeys are interned, so there is no reason to waste time doing any deeper comparison. This override
|
||||
* is patched in by Forge, it doesn't exist in vanilla
|
||||
*/
|
||||
@Overwrite(remap = false)
|
||||
public boolean equals(Object o) {
|
||||
return o == this;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user