Skip to content

Bug fixes - #98

Merged
Micalobia merged 6 commits into
stablefrom
bug-fixes
Dec 7, 2025
Merged

Bug fixes#98
Micalobia merged 6 commits into
stablefrom
bug-fixes

Conversation

@Micalobia

Copy link
Copy Markdown
Owner

Reworked huge parts of the back-end

  • Removed SlabContext entirely, it was janky and unnecessary
  • Removed the forwarding functions from MixedSlabBlock for the same reasons
  • Added a SlabLike interface that MixedSlabBlock, VerticalSlabBlock, and SlabBlock all inherit from
    • Most of the Utility functions have either been removed or moved into SlabLike
    • All the forwarding and context usage has also been moved to use SlabLike instead
  • Fixed a MixedHandler bug where playerDestroy wasn't being correctly called. It didn't cause problems yet because nothing needed it, but it would've been a problem for future compat.
  • Workflow changes for publishing, it's not on tag push anymore.

Prevents edge case crashes
Not used yet, but I plan on refactoring a bunch to use it. I *really* need to plan things before trying to just riff a project as complex as this. I've moved MixedType as well
Alright, so this was a big sweep of changes. After all that slab context work, I removed the concept entirely in favor of an interface called SlabLike that lets you do slab operations. This also removed all the forwarding functions built into MixedSlabBlock, and moved most of the Utility functions out of that class into SlabLike. Why I didn't do this from the start, the world may never know.

Also of note, fixed a compat bug with Mo Glass
It just wasn't getting called, it was calling the base block version. No behavior change for existing slabs, but would've caused problems if any handler needed it
The release isn't tied to tags anymore, it's a manual thing so I can set up a changelog
@Micalobia
Micalobia merged commit a4b0f4a into stable Dec 7, 2025
1 check passed
@Micalobia
Micalobia deleted the bug-fixes branch December 7, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant