Lights will not obey their machine.ison state when run through the interiorspawner component upon transitions into interiors. Adding
if v.Light and v.components.machine and not v.components.machine.ison then
v.Light:Enable(false)
end
To around line 1262 to scripts/components/interiorspawn.lua seems to resolve the problem for not only lanterns but all lights that can be toggled, e.g. tarlamp.
Steps to Reproduce
Drop lantern inside an interior. Exit and re-enter interior. See that the light is on around the lantern but the lantern is not on. Paste in the above code into the specified file and attempt to reproduce again.
Drop lantern inside an interior. Exit and re-enter interior. See that the light is on around the lantern but the lantern is not on. Paste in the above code into the specified file and attempt to reproduce again.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now