Skip to content

Commit

Permalink
Possible fix for #249
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyn-Price committed May 13, 2018
1 parent b94916f commit 44890fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static IBlockState getBlockState(IBlockAccess world, BlockPos pos) {
{
;
}
state = ((IExtendedBlockState)state).withProperty(ISecretBlock.RENDER_PROPERTY, renderState);
state = ((IExtendedBlockState)state.getBlock().getExtendedState(state, world, pos)).withProperty(ISecretBlock.RENDER_PROPERTY, renderState);
SecretBlockModel.instance().AO.set(Minecraft.getMinecraft().getBlockRendererDispatcher().getModelForState(renderState).isAmbientOcclusion());
SecretBlockModel.instance().SRMBLOCK.set(state);
return state;
Expand Down

0 comments on commit 44890fc

Please sign in to comment.