Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lua/entities/gmod_wire_eyepod.lua
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@
end
self.pod = vehicle
vehicle:CallOnRemove("wire_eyepod_remove",function()
self:UnlinkEnt(vehicle)
if self:IsValid() then
self:UnlinkEnt(vehicle)
end
end)

self.rotate90 = false
Expand Down Expand Up @@ -203,7 +205,7 @@

function ENT:updateEyePodState(enabled)
self:ColorByLinkStatus(enabled and self.LINK_STATUS_ACTIVE or self.LINK_STATUS_LINKED)
umsg.Start("UpdateEyePodState", self.driver)

Check warning on line 208 in lua/entities/gmod_wire_eyepod.lua

View workflow job for this annotation

GitHub Actions / lint

"Deprecated"

Deprecated: Use net messages.
umsg.Angle(self.eyeAng)
umsg.Bool(enabled)
umsg.Bool(self.rotate90)
Expand Down
Loading