More patterns fixes
This commit is contained in:
parent
8306f245e1
commit
835b2e56d6
11 changed files with 40 additions and 32 deletions
|
@ -37,14 +37,15 @@ public class BlockStairs extends StairsBlock implements Patterned {
|
|||
|
||||
@Override
|
||||
public String getModelPattern(String block) {
|
||||
Identifier blockId = Registry.BLOCK.getId(this);
|
||||
Identifier parentId = Registry.BLOCK.getId(parent);
|
||||
if (block.contains("inner")) {
|
||||
return Patterned.createJson(Patterned.STAIRS_MODEL_INNER, parentId, block);
|
||||
return Patterned.createJson(Patterned.STAIRS_MODEL_INNER, parentId, blockId.getPath());
|
||||
}
|
||||
if (block.contains("outer")) {
|
||||
return Patterned.createJson(Patterned.STAIRS_MODEL_OUTER, parentId, block);
|
||||
return Patterned.createJson(Patterned.STAIRS_MODEL_OUTER, parentId, blockId.getPath());
|
||||
}
|
||||
return Patterned.createJson(Patterned.STAIRS_MODEL, parentId, block);
|
||||
return Patterned.createJson(Patterned.STAIRS_MODEL, parentId, blockId.getPath());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue