2xsaiko / rswires

Redstone wires
MIT License
5 stars 6 forks source link

Comparator side input doesn't accept alloy wire #4

Closed copygirl closed 4 years ago

copygirl commented 4 years ago

Minecraft: 1.16.1 RSWires: 4.9.0

It looks like the wire connects to the comparator's side, but neither in compare nor subtract mode does it actually affect the comparator's output. I noticed this while trying to make a comparator clock. One temporary workaround is to replace the wire connected to the side with redstone dust.

To Reproduce...

2020-08-26_08 07 31

Expected Output

2020-08-26_08 07 38

2xsaiko commented 4 years ago

Looks like comparators take strong power from the sides, and red alloy wire only provides strong power downwards. It's hardcoded to work correctly for redstone dust in the comparator code. This is gonna need some weird hacks to fix.

copygirl commented 4 years ago

What makes the wire visually connect to the side of the comparator? Can you use that to affect whether strong power is applied to the block, whether it specifically is a comparator or not?

edit: Ah well, if it's hardcoded to work that way ... I suppose redstone doesn't provide strong power to blocks it visually connects to, either? Then yeah, the wire should probably work the same.

2xsaiko commented 4 years ago

Yeah I just hardcoded it to provide strong power to comparators only (see 6356a06), now it should work the same as redstone dust. And no, I believe the redstone wire connections is only a visual thing and it provides weak power regardless of if it appears connected or not.