mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 19:59:36 +00:00
Make platform disappear with managlass, and fix version checker
This commit is contained in:
2 files changed
+6
-1
No files matched your search
@@ -56,6 +56,11 @@ public class PlatformModel implements IBakedModel {
|
||||
ModelResourceLocation path = new ModelResourceLocation("botania:platform", "variant=" + state.getValue(BotaniaStateProps.PLATFORM_VARIANT).getName());
|
||||
return mc.getBlockRendererDispatcher().getBlockModelShapes().getModelManager().getModel(path).getQuads(state, side, rand);
|
||||
} else if(heldState != null) {
|
||||
|
||||
// Some people used this to get an invisible block in the past, accommodate that.
|
||||
if(heldState.getBlock() == ModBlocks.manaGlass)
|
||||
return ImmutableList.of();
|
||||
|
||||
if(heldState.getBlock().canRenderInLayer(heldState, layer)) {
|
||||
IBlockState actual = heldState.getBlock().getActualState(heldState, new FakeBlockAccess(heldWorld), heldPos);
|
||||
|
||||
|
||||
Reference in new issue
Block a user