Drone Interface Conditions Not Evaluating Correctly
Alice0Rose opened this issue ยท 0 comments
Describe the bug
When using the Drone Interface to control a drone, drone conditions are not evaluated correctly. Regardless of what the output should be, most conditions always return "false", with the drone_condition_pressure always returning "true".
How to reproduce the bug
- Place a Drone Interface next to a CC:Tweaked computer and link a drone to it using the Drone Programmer.
- Add the following test program to the computer by dragging from Windows Explorer into the window of the computer in MC:
local interface = peripheral.find("droneInterface")
-- Test 1
interface.setOperator("=")
interface.setCount(0)
interface.setAction("drone_condition_item")
print(interface.evaluateCondition())
-- Test 2
interface.setOperator(">=")
interface.setCount(0)
interface.setAction("drone_condition_item")
print(interface.evaluateCondition())
-- Test 3
interface.setOperator("<=")
interface.setCount(0)
interface.setAction("drone_condition_item")
print(interface.evaluateCondition())
- Run the program while a drone is connected to the interface by typing "test" into the computer terminal.
- Observe that all 3 conditions return false regardless of what number you set the count to.
Expected behavior
The test program should show the conditions being correctly evaluated, which for a count of 0 would be "true, true, true", while a count of 1 would be "false, false, true" etc.
Additional details
No response
Which Minecraft version are you using?
1.18
Which version of PneumaticCraft: Repressurized are you using?
pneumaticcraft-repressurized-1.18.2-3.4.4-14
Crash log
No response