starfish-studios / Building-But-Better

Other
1 stars 2 forks source link

Fix FrameBlock::updateShape method #7

Open playwmadness opened 3 months ago

playwmadness commented 3 months ago

Fix #6 by providing non-null BlockGetter and BlockPos values to state.isFaceSturdy in FrameBlock::checkConnection (formerly FrameBlock::validConnection). Make it so checkConnection only checks the adjacent face of the neighboring block. Invert the return value of checkConnection inside the function body, because every use of that function was already inverted anyway. Optimize and inline getConnections.