Update ModelLoaderMixin.java

This commit is contained in:
Aleksey 2020-10-11 21:40:27 +03:00
parent 4ad8e60905
commit 6dc33efc74

View file

@ -13,7 +13,7 @@ import ru.betterend.BetterEnd;
@Mixin(ModelLoader.class)
public class ModelLoaderMixin {
@Inject(method = "loadModelFromJson", at = @At("HEAD"))
@Inject(method = "loadModelFromJson", at = @At("HEAD"), cancellable = true)
private void loadModelFromJson(Identifier id, CallbackInfoReturnable<JsonUnbakedModel> info) {
if (id.getNamespace().equals(BetterEnd.MOD_ID) && id.getPath().contains("pattern")) {
System.out.println(id.getPath());