Skip to content

Commit

Permalink
Correction
Browse files Browse the repository at this point in the history
  • Loading branch information
parar020100 committed Jun 19, 2024
1 parent 874f08a commit 27f24b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/entities/gmod_tardis/modules/sh_doors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -227,17 +227,17 @@ if SERVER then
end)

ENT:AddHook("BodygroupChanged","doors",function(self,bodygroup,value)
if self.metadata.SyncExteriorBodygroupToDoors then return end
if not self.metadata.SyncExteriorBodygroupToDoors then return end
if self:IsChameleonActive() then return end

local door=TARDIS:GetPart(self,"door")
local intdoor=TARDIS:GetPart(self.interior,"door")

if IsValid(door) then
if IsValid(door) and door:GetBodygroup(bodygroup) ~= value then
door:SetBodygroup(bodygroup,value)
end

if IsValid(intdoor) then
if IsValid(intdoor) and door:GetBodygroup(bodygroup) ~= value then
intdoor:SetBodygroup(bodygroup,value)
end
end)
Expand Down

0 comments on commit 27f24b9

Please sign in to comment.