Skip to content

Fix Facade Plugs Turning Invisible From Some Angles - #64

Merged
shipovskijkorp merged 8 commits into
BCCE-team:26.X-devfrom
Smail:fix/facade-plug-face-labels
Oct 9, 2026
Merged

shipovskijkorp merged 8 commits into
BCCE-team:26.X-devfrom
Smail:fix/facade-plug-face-labels

Conversation

@Smail

@Smail Smail commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Facade plug textures disappear when you looked at them from certain directions. One side was also upside down (see first image). Plugs get baked once and then rotated onto each side of the pipe. The rotation moved the vertices but left the face label alone, so Minecraft culled and shaded the rotated quads as if they still faced the old side.

What changed:

  • MutableQuad.rotate now rotates the face label together with the geometry. It uses a small lookup table, so there's no extra allocation.
  • Added DirectionCompat.nearest to cover the Direction API difference between versions.
  • Fixed the flipped north face texture on the blocker plug (blocker.json).
  • Added MutableQuadRotateTester. It fails without the fix.

Tested:

  • Unit test passes on 1.19.2, 1.20.1 and 1.21.11.

rotate is shared by every pluggable, so gates, robot stations and the rest should get the fix too.

Bugged:

image Pasted Graphic 2 Pasted Graphic 3

Fixed:

Pasted Graphic 4 Pasted Graphic 5

@shipovskijkorp
shipovskijkorp changed the base branch from main to 26.X-dev October 9, 2026 20:05
@shipovskijkorp
shipovskijkorp merged commit 016eff7 into BCCE-team:26.X-dev Oct 9, 2026
@Smail
Smail deleted the fix/facade-plug-face-labels branch October 11, 2026 11:13
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.

2 participants