Sapling pattern fix

This commit is contained in:
Aleksey 2020-10-15 14:37:01 +03:00
parent 3b966ff8e6
commit d9d6d32e91
5 changed files with 4 additions and 4 deletions

View file

@ -111,7 +111,7 @@ public abstract class BlockFeatureSapling extends BlockBaseNotFull implements Fe
public String getModelPattern(String block) {
if (block.contains("item")) {
block = block.split("/")[1];
return Patterned.createJson(Patterned.ITEM_MODEL, block);
return Patterned.createJson(Patterned.BLOCK_ITEM_MODEL, block);
}
return Patterned.createJson(Patterned.SAPLING_MODEL, block);
}

View file

@ -146,7 +146,7 @@ public class BlockLadder extends BlockBaseNotFull implements IRenderTypeable, Pa
public String getModelPattern(String block) {
Identifier blockId = Registry.BLOCK.getId(this);
if (block.contains("item")) {
return Patterned.createJson(Patterned.LADDER_ITEM_MODEL, blockId.getPath());
return Patterned.createJson(Patterned.BLOCK_ITEM_MODEL, blockId.getPath());
}
return Patterned.createJson(Patterned.LADDER_MODEL, blockId.getPath());
}