Small fixes

This commit is contained in:
paulevsGitch 2021-07-11 23:12:22 +03:00
parent eeb05a7797
commit 5341daf326
2 changed files with 3 additions and 3 deletions

View file

@ -269,7 +269,7 @@ public class FlowerPotBlock extends BaseBlockNotFull implements IRenderTyped, IP
else if (plants[i] instanceof SaplingBlock) { else if (plants[i] instanceof SaplingBlock) {
ResourceLocation loc = Registry.BLOCK.getKey(plants[i]); ResourceLocation loc = Registry.BLOCK.getKey(plants[i]);
modelPath = new ResourceLocation(loc.getNamespace(), "block/" + loc.getPath()); modelPath = new ResourceLocation(loc.getNamespace(), "block/" + loc.getPath() + "_potted");
Map<String, String> textures = Maps.newHashMap(); Map<String, String> textures = Maps.newHashMap();
textures.put("%modid%", loc.getNamespace()); textures.put("%modid%", loc.getNamespace());
textures.put("%texture%", loc.getPath()); textures.put("%texture%", loc.getPath());
@ -281,7 +281,7 @@ public class FlowerPotBlock extends BaseBlockNotFull implements IRenderTyped, IP
} }
else if (plants[i] instanceof PottableLeavesBlock) { else if (plants[i] instanceof PottableLeavesBlock) {
ResourceLocation loc = Registry.BLOCK.getKey(plants[i]); ResourceLocation loc = Registry.BLOCK.getKey(plants[i]);
modelPath = new ResourceLocation(loc.getNamespace(), "block/" + loc.getPath()); modelPath = new ResourceLocation(loc.getNamespace(), "block/" + loc.getPath() + "_potted");
Map<String, String> textures = Maps.newHashMap(); Map<String, String> textures = Maps.newHashMap();
textures.put("%leaves%", loc.getPath().contains("lucernia") ? loc.getPath() + "_1" : loc.getPath()); textures.put("%leaves%", loc.getPath().contains("lucernia") ? loc.getPath() + "_1" : loc.getPath());
textures.put("%stem%", loc.getPath().replace("_leaves", "_log_side")); textures.put("%stem%", loc.getPath().replace("_leaves", "_log_side"));

View file

@ -27,6 +27,6 @@ public class LucerniaSaplingBlock extends PottableFeatureSapling {
@Override @Override
public boolean canPlantOn(Block block) { public boolean canPlantOn(Block block) {
return false; return block == EndBlocks.RUTISCUS;
} }
} }