forked from willox/gmod-keypad
Properly set owner on dupe
This commit is contained in:
parent
b4b9de0f09
commit
dea84cf8e3
@ -139,6 +139,7 @@ function ENT:Reset()
|
||||
Wire_TriggerOutput( self, "Access Denied", self.KeypadData.OutputOff )
|
||||
end
|
||||
|
||||
duplicator.RegisterEntityModifier( "keypad_wire_password_passthrough", function( _, entity, data )
|
||||
duplicator.RegisterEntityModifier( "keypad_wire_password_passthrough", function( ply, entity, data )
|
||||
entity:SetKeypadOwner( ply )
|
||||
entity:SetData( data )
|
||||
end )
|
||||
|
Loading…
Reference in New Issue
Block a user