TerraFirmaCraft

TerraFirmaCraft

2M Downloads

Powderkeg texture error

aliceingame opened this issue ยท 1 comments

commented

TFC 1.18.2-2.2.31

It's actually not a problem on the GUI texture but in how it is rendered.

Found this while updating my resources pack.

The button with the seal/unseat in the powder keg does not use the same behavior as the button in other interfaces like the barrel. Instead of only displaying the button on top of the GUI texture, it add something from a completely different texture on top of the GUI then add the seat button on top of that.

Using this modified texture (I removed the seal button and put the slot in green in the GUI), we can see there is an unrelated texture from elsewhere in my pack that show up.

The reason I noticed is that my texture use 16x16 button instead of 20x20, so for the border I see the border as it is in the GUI, but I see 1 pixel on each side as this unknown texture is 16x18.

image

powderkeg

For reference, here is my texture
Barrel
image

Powder keg
image

texture
image

commented

I think this super call is probably the culprit.

super.renderButton(poseStack, mouseX, mouseY, partialTicks);