ConnectedTexturesMod for Fabric

ConnectedTexturesMod for Fabric

227k Downloads

`Edges` type connector does not return correct submap

MrJoshuaT opened this issue ยท 1 comments

commented

The TextureEdges.getSubmapId method seems to return the incorrect index for some cases. I've added the .mcmeta and .png files, and the current result and my fix. The issue seems to stem from incorrect ordering of conditions.

Given a ctm json of:
{ "ctm": { "ctm_version": 1, "type": "edges", "textures": [ "block/coarse_dirt_ctm", "block/coarse_dirt_ctm" ], "extra": { "connect_to": [ { "block": "grass_block" } ] } } }

Given a ctm png of (ignore the horrid png, I just threw it together to see the result):
coarse_dirt_ctm

It produces an incorrect result of:
2021-08-09_17 48 37

Of which the correct should be:
2021-08-09_17 47 42

commented

Fixed with latest commit.