mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Fixed Override
This commit is contained in:
@@ -151,13 +151,13 @@ function left._left.toggle(event)
|
|||||||
else open = {gui.unauthorized} end
|
else open = {gui.unauthorized} end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if open and left.style.visible ~= true then
|
if open == true and left.style.visible ~= true then
|
||||||
left.style.visible = true
|
left.style.visible = true
|
||||||
else
|
else
|
||||||
left.style.visible = false
|
left.style.visible = false
|
||||||
end
|
end
|
||||||
if open == false then player_return({'gui.cant-open-no-reason'},defines.text_color.crit,player) player.play_sound{path='utility/cannot_build'}
|
if open == false then player_return({'gui.cant-open-no-reason'},defines.text_color.crit,player) player.play_sound{path='utility/cannot_build'}
|
||||||
elseif open ~= true then player_return({'gui.cant-open',open},defines.text_color.crit,player) player.play_sound{path='utility/cannot_build'} end
|
elseif open ~= true then player_return({'gui.cant-open',open},defines.text_color.crit,player) player.play_sound{path='utility/cannot_build'} end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- draws the left guis when a player first joins, fake_event is just because i am lazy
|
-- draws the left guis when a player first joins, fake_event is just because i am lazy
|
||||||
|
|||||||
Reference in New Issue
Block a user