Skip to content

FullCubeMask improvements#2952

Open
TomyLobo wants to merge 4 commits intomasterfrom
fullcube-double-slabs
Open

FullCubeMask improvements#2952
TomyLobo wants to merge 4 commits intomasterfrom
fullcube-double-slabs

Conversation

@TomyLobo
Copy link
Copy Markdown
Collaborator

@TomyLobo TomyLobo commented Apr 19, 2026

  • Make #fullcube match double slabs
  • Add #visualfullcube

@TomyLobo TomyLobo requested a review from a team as a code owner April 19, 2026 20:51
@TomyLobo TomyLobo changed the base branch from version/7.3.x to version/7.4.x April 19, 2026 20:53
@TomyLobo TomyLobo force-pushed the fullcube-double-slabs branch 2 times, most recently from a9b08cf to 96ac382 Compare April 26, 2026 14:36
@TomyLobo TomyLobo changed the base branch from version/7.4.x to master April 29, 2026 23:51
@TomyLobo TomyLobo force-pushed the fullcube-double-slabs branch from 96ac382 to 0218ea0 Compare April 30, 2026 01:08
@TomyLobo TomyLobo force-pushed the fullcube-double-slabs branch from 0218ea0 to 2bc7474 Compare April 30, 2026 01:57
public BlockMaterial getMaterial(BlockType blockType) {
Material mat = BukkitAdapter.adapt(blockType);
public BlockMaterial getMaterial(BlockState blockState) {
Material mat = BukkitAdapter.adapt(blockState.getBlockType());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little unsure we can safely do this? It currently looks like this code just caches the BlockMaterial against a BlockType, using whatever BlockState is first given to it. Meaning we're not actually getting this data on a per-state basis.

I feel it should either be implemented properly to work on a per-state basis, or at the very least always use the default state rather than "whichever is passed first" for better consistency.

TomyLobo added 3 commits May 3, 2026 18:38
This excludes, for instance, rose bushes, which are #fullcube, but are
visually smaller.
@TomyLobo TomyLobo force-pushed the fullcube-double-slabs branch from 2bc7474 to 46d5a63 Compare May 3, 2026 20:19
@TomyLobo TomyLobo changed the title Make #fullcube match double slabs FullCubeMask improvements May 3, 2026
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.

3 participants