Properly set owner on dupe

This commit is contained in:
Redox 2023-07-26 16:56:59 +02:00 committed by GitHub
parent b4b9de0f09
commit dea84cf8e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 )