Advanced Peripherals

Advanced Peripherals

29M Downloads

Redstone Integrator does not use directions correctly

ANNOProfi opened this issue ยท 0 comments

commented

Describe

When either setting, or getting, the output of a redstone integrator (tested via wired modem), all directions except top and bottem are ignored, with "top" and "bottom" activating both themselves and one other direction, that they shouldn't.
The left and right directions throw an error and can not be accessed.

Steps to reproduce

  1. Advanced Computer, Monitor to the left, wired modem on top. Redstone integrator with wired modem on the back.
  2. Code used:

local integrator = peripheral.find("redstoneIntegrator")

if integrator == nil then error("redstoneIntegrator not found") end

print(integrator.getInput("top"))
print(integrator.getInput("bottom"))
print(integrator.getInput("front"))
print(integrator.getInput("back"))
print(integrator.getInput("left"))
print(integrator.getInput("right"))

  1. Levers on all remaining sides of the integrator.

  2. The following output is what happens for me:

all off/left, right, front on:
false
false
false
false
(program_name).lua:9: Java Exception Thrown: java.lang.IllegalStateException: Unable to get Y-rotated facing of up

top on:
true
false
true
false
(program_name).lua:9: Java Exception Thrown: java.lang.IllegalStateException: Unable to get Y-rotated facing of up

bottom on:
false
true
false
true
(program_name).lua:9: Java Exception Thrown: java.lang.IllegalStateException: Unable to get Y-rotated facing of up

top and bottom on:
true
true
true
true
(program_name).lua:9: Java Exception Thrown: java.lang.IllegalStateException: Unable to get Y-rotated facing of up

Multiplayer?

No

Version

1.18.2-0.7.21r (Latest 1.18)

Minecraft, Forge and maybe other related mods versions

Forge 40.1.60 Minecraft 1.18.2

Screenshots or Videos

No response

Crashlog/log

No response