Terrain and Path block model fix
This commit is contained in:
parent
e0b45ee833
commit
d2d9c8d2eb
4 changed files with 29 additions and 17 deletions
|
@ -109,11 +109,11 @@ public class TripleTerrainBlock extends BaseTerrainBlock {
|
|||
}
|
||||
|
||||
@Override
|
||||
public @Nullable BlockModel getBlockModel(ResourceLocation resourceLocation, BlockState blockState) {
|
||||
String path = resourceLocation.getPath();
|
||||
public @Nullable BlockModel getBlockModel(ResourceLocation blockId, BlockState blockState) {
|
||||
String path = blockId.getPath();
|
||||
Optional<String> pattern;
|
||||
if (isMiddle(blockState)) {
|
||||
ResourceLocation topId = new ResourceLocation(resourceLocation.getNamespace(), path + "_top");
|
||||
ResourceLocation topId = new ResourceLocation(blockId.getNamespace(), path + "_top");
|
||||
pattern = PatternsHelper.createBlockSimple(topId);
|
||||
} else {
|
||||
Map<String, String> textures = Maps.newHashMap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue