Open nosefish opened 11 years ago
Still working on this a bit, redstone wire natively behaves oddly when reducing power, and tripwire hook is a bit akward with both hooks activating/deactivating off on string, but all the others should be functioning fine
Levers still don't work right when they are being switched off. same for buttons returning to "off" state.
Forgot to mention in the original report: No redstone hook call when certain redstone-related blocks are broken while in "on" state. Below are the ones I've tested:
correct behaviour: rs blocks, rs torches, buttons, daylight sensors
these don't work: levers, buttons, wires, repeaters, comparators, pressure plates
Ok, this should now correct everything with the exception of TripwireHooks
lever: newLevel is always 0 or 8, for oldLevel I've seen 1, 3, and 5 so far, semi-randomly. (expected 0/15 or 15/0)
button: when pressing, newLevel is alway 8 (expected 15), oldLevel same semi-random values as lever (expected 0). No hook call at all when the button comes back out and turns off.
tripwire hook, daylight sensor, trapped chest, comparator, repeater, placement of rs torch/block: no hook call
redstone wire: when level increases, only one hook call. when level decreases, one hook call for every step (e.g. 0->2: hook(0, 2); but 2->0: hook(old=2, new=1), hook(old=1, new=0))
pressure plates behave as expected.