diff --git a/src/main/java/land/chipmunk/chipmunkmod/mixin/IdentifierMixin.java b/src/main/java/land/chipmunk/chipmunkmod/mixin/IdentifierMixin.java index 8b51f03..48faf18 100644 --- a/src/main/java/land/chipmunk/chipmunkmod/mixin/IdentifierMixin.java +++ b/src/main/java/land/chipmunk/chipmunkmod/mixin/IdentifierMixin.java @@ -9,9 +9,16 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; @Mixin(Identifier.class) public class IdentifierMixin { @Inject(method = "isNamespaceCharacterValid", at = @At("HEAD"), cancellable = true) - private static void isNamespaceCharacterValid(char character, CallbackInfoReturnable cir) { + private static void isNamespaceCharacterValid (char character, CallbackInfoReturnable cir) { cir.setReturnValue(true); cir.cancel(); } + + @Inject(method = "validateNamespace", at = @At("HEAD"), cancellable = true) + private static void validateNamespace(String namespace, String path, CallbackInfoReturnable cir) { + cir.setReturnValue(namespace); + + cir.cancel(); + } }