mirror of
https://github.com/joe7575/techpack.git
synced 2024-12-01 19:43:52 +01:00
door command bug fixed
This commit is contained in:
parent
5e5ba05d0c
commit
5a8da65e89
@ -158,9 +158,9 @@ sl_controller.register_action("door", {
|
|||||||
local player = {
|
local player = {
|
||||||
get_player_name = function() return self.meta.owner end,
|
get_player_name = function() return self.meta.owner end,
|
||||||
}
|
}
|
||||||
if state == "open" then
|
if text == "open" then
|
||||||
door:open(player)
|
door:open(player)
|
||||||
elseif state == "close" then
|
elseif text == "close" then
|
||||||
door:close(player)
|
door:close(player)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user