fixed syntax

This commit is contained in:
navid.sassan 2021-04-02 15:49:15 +02:00
parent ef21e47f7d
commit a46a7d1126

View File

@ -64,7 +64,7 @@ function lever_input()
local lever_state = redstone.getInput("top") local lever_state = redstone.getInput("top")
while true do while true do
local new_lever_state = redstone.getInput("top") local new_lever_state = redstone.getInput("top")
if new_lever_state != lever_state then if new_lever_state ~= lever_state then
lever_state = new_lever_state lever_state = new_lever_state
local output_state = not redstone.getInput("back") local output_state = not redstone.getInput("back")
redstone.setOutput("back", output_state) redstone.setOutput("back", output_state)