Create: Steam 'n' Rails

Create: Steam 'n' Rails

27M Downloads

Copycat Headstocks of different styles do not attach

SeveringHams opened this issue ยท 1 comments

commented

Describe the Suggestion

I believe that replacing lines 97 and 116 of /content/buffer/headstock/CopycatHeadstockBlock.java from
BlockState toState = reader.getBlockState(toPos);
to
BlockState toState = reader.getBlockState(toPos).setValue(STYLE, state.getValue(STYLE));
would fix it.

As you could probably tell, it would make the methods isIgnoredConnectivitySide and canConnectTexturesToward pretend that the secondary headstock blockstate had the same STYLE value as the origin headstock blockstate.

Perhaps setting both state and toState's STYLE value to the same thing would to the same, and would reduce the amount of world accesses. Whatever you see to be most prudent, just my afterthought.

I don't care about credit, so if you think it would improve the mod at all, just chuck in the code.

Cheers!

Screenshots and Videos

No response

Additional Context

No response

commented

Wrong tag, sorry