Make platform disappear with managlass, and fix version checker

This commit is contained in:
Vincent Lee committed 2016-05-01 11:42:40 -05:00
1 parent 95427b1c9d
commit e37255a997
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);