Remove resource_key_equality patch as NeoForge fixes it in 1.20+
This commit is contained in:
parent
1b73ded110
commit
3df41090e4
|
|
@ -1,18 +0,0 @@
|
|||
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