Update ModelLoaderMixin.java
This commit is contained in:
parent
8e259abbb7
commit
fdce12de38
1 changed files with 1 additions and 4 deletions
|
@ -36,10 +36,7 @@ public class ModelLoaderMixin {
|
||||||
@Shadow
|
@Shadow
|
||||||
private ResourceManager resourceManager;
|
private ResourceManager resourceManager;
|
||||||
|
|
||||||
@Inject(method = "loadModelFromJson", cancellable = true, at = @At(
|
@Inject(method = "loadModelFromJson", at = @At("HEAD"), cancellable = true)
|
||||||
value = "NEW",
|
|
||||||
target = "net/minecraft/util/Identifier",
|
|
||||||
shift = Shift.BEFORE))
|
|
||||||
private void loadModelPattern(Identifier id, CallbackInfoReturnable<JsonUnbakedModel> info) {
|
private void loadModelPattern(Identifier id, CallbackInfoReturnable<JsonUnbakedModel> info) {
|
||||||
if (id.getNamespace().equals(BetterEnd.MOD_ID)) {
|
if (id.getNamespace().equals(BetterEnd.MOD_ID)) {
|
||||||
Identifier modelId = new Identifier(id.getNamespace(), "models/" + id.getPath() + ".json");
|
Identifier modelId = new Identifier(id.getNamespace(), "models/" + id.getPath() + ".json");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue