Skip to content

Redstone interface fixes (1.21.1)#132

Open
rafern wants to merge 6 commits intoNorth-Western-Development:1.21.1from
rafern:1.21.1-redstone-interface-fixes
Open

Redstone interface fixes (1.21.1)#132
rafern wants to merge 6 commits intoNorth-Western-Development:1.21.1from
rafern:1.21.1-redstone-interface-fixes

Conversation

@rafern
Copy link
Copy Markdown

@rafern rafern commented Apr 2, 2026

Added support for bundled cables to the redstone interface card (interface block already supported it, but not the card that you put in the computer block, which was inconsistent), and fixed bugs related to the redstone interface card and block.

Bug fixes:

  • Fixed redstone interface card and block emitting signals in the wrong direction (might clash with Clearly separate local and global directions when using Side #126, which I unfortunately only found after working on this)
  • Fixed getBundledInput returning null instead of a list of 0-level signals if a bundled cable is not connected

Note that, to test this, I had to change the NeoForge version to 21.1.222, and had to use this fork of MarkdownManual. These changes are not included.

Edit: there were some issues with handling of bundled cable directions, which are now fixed. I don't think I've fully understood how these are supposed to work though, as there seems to be some inconsistency between how directions are handled for redstone versus bundles, so more work might be needed

rafern added 6 commits April 2, 2026 22:26
BundledRedstone.isAvailable should probably also be deprecated, since
you have to check that the return value of getBundledInput isn't null
anyway. Either that, or BundledCableHandler.getBundledInput should never
return null
Not super happy with the implementation, lots of copy-pasta. Code could
be shared
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.

1 participant