mirror of
https://code.chipmunk.land/ChomeNS/chipmunkmod.git
synced 2025-11-13 21:06:16 +00:00
fix??? prob not
This commit is contained in:
parent
99d37d33f9
commit
b86e6d649e
1 changed files with 8 additions and 1 deletions
|
|
@ -9,9 +9,16 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||||
@Mixin(Identifier.class)
|
@Mixin(Identifier.class)
|
||||||
public class IdentifierMixin {
|
public class IdentifierMixin {
|
||||||
@Inject(method = "isNamespaceCharacterValid", at = @At("HEAD"), cancellable = true)
|
@Inject(method = "isNamespaceCharacterValid", at = @At("HEAD"), cancellable = true)
|
||||||
private static void isNamespaceCharacterValid(char character, CallbackInfoReturnable<Boolean> cir) {
|
private static void isNamespaceCharacterValid (char character, CallbackInfoReturnable<Boolean> cir) {
|
||||||
cir.setReturnValue(true);
|
cir.setReturnValue(true);
|
||||||
|
|
||||||
cir.cancel();
|
cir.cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Inject(method = "validateNamespace", at = @At("HEAD"), cancellable = true)
|
||||||
|
private static void validateNamespace(String namespace, String path, CallbackInfoReturnable<String> cir) {
|
||||||
|
cir.setReturnValue(namespace);
|
||||||
|
|
||||||
|
cir.cancel();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue