Update ModelLoaderMixin.java
This commit is contained in:
parent
4ad8e60905
commit
6dc33efc74
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ import ru.betterend.BetterEnd;
|
||||||
@Mixin(ModelLoader.class)
|
@Mixin(ModelLoader.class)
|
||||||
public class ModelLoaderMixin {
|
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) {
|
private void loadModelFromJson(Identifier id, CallbackInfoReturnable<JsonUnbakedModel> info) {
|
||||||
if (id.getNamespace().equals(BetterEnd.MOD_ID) && id.getPath().contains("pattern")) {
|
if (id.getNamespace().equals(BetterEnd.MOD_ID) && id.getPath().contains("pattern")) {
|
||||||
System.out.println(id.getPath());
|
System.out.println(id.getPath());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue