Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit afd6bbc

Browse filesBrowse files
authored
Make PLAYER:AddCleanup server only (Facepunch#2258)
1 parent 99d3a99 commit afd6bbc
Copy full SHA for afd6bbc

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed

‎garrysmod/gamemodes/sandbox/gamemode/player_extension.lua

Copy file name to clipboardExpand all lines: garrysmod/gamemodes/sandbox/gamemode/player_extension.lua
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ function meta:AddCount( str, ent )
9090

9191
end
9292

93-
function meta:AddCleanup( type, ent )
94-
95-
cleanup.Add( self, type, ent )
96-
97-
end
98-
9993
function meta:GetTool( mode )
10094

10195
local wep = self:GetWeapon( "gmod_tool" )
@@ -110,6 +104,12 @@ end
110104

111105
if ( SERVER ) then
112106

107+
function meta:AddCleanup( type, ent )
108+
109+
cleanup.Add( self, type, ent )
110+
111+
end
112+
113113
function meta:LimitHit( str )
114114

115115
self:SendLua( string.format( 'hook.Run("LimitHit",%q)', str ) )

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.