door command bug fixed

This commit is contained in:
Joachim Stolberg 2018-07-19 22:39:46 +02:00
parent 5e5ba05d0c
commit 5a8da65e89

@ -158,9 +158,9 @@ sl_controller.register_action("door", {
local player = {
get_player_name = function() return self.meta.owner end,
}
if state == "open" then
if text == "open" then
door:open(player)
elseif state == "close" then
elseif text == "close" then
door:close(player)
end
end