Skip to content

Commit

Permalink
Small Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown-gd committed Mar 4, 2024
1 parent c091ddd commit 5207a1b
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions lua/autorun/!!!random-patches.yue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CLIENT = CLIENT
SERVER = SERVER
pairs = pairs

addonName = "Random Patches v5.17.0"
addonName = "Random Patches v5.17.1"

getHookName = ( patchName, hookName ) ->
return addonName .. "::" .. patchName .. ( hookName or "" )
Expand Down Expand Up @@ -226,7 +226,7 @@ do
if value == nil
value = ENTITY[ key ]
if value == nil
return getTable( @ )[ key ]
value = getTable( @ )[ key ]

return value

Expand Down Expand Up @@ -255,7 +255,7 @@ do
if value == nil
value = ENTITY[ key ]
if value == nil
return getTable( @ )[ key ]
value = getTable( @ )[ key ]

return value

Expand All @@ -268,7 +268,7 @@ do
if value == nil
value = ENTITY[ key ]
if value == nil
return getTable( @ )[ key ]
value = getTable( @ )[ key ]

return value

Expand Down Expand Up @@ -403,15 +403,8 @@ do
return getmetatable( @ ) == metatable

-- nil
do

metatable = registry[ "nil" ]

metatable.__tostring = ->
return "nil"

global isnil = =>
return getmetatable( @ ) == metatable
registry[ "nil" ].__tostring = ->
return "nil"

-- number
do
Expand All @@ -422,7 +415,7 @@ do
return "" .. number

global isnumber = =>
return getmetatable( @ ) == registry[ "number" ]
return getmetatable( @ ) == metatable

-- string
do
Expand Down Expand Up @@ -512,7 +505,6 @@ do
do

metatable = registry[ "Color" ]
isnumber = isnumber

metatable.__tostring = ( color ) ->
return color.r .. " " .. color.g .. " " .. color.b .. " " .. color.a
Expand Down

0 comments on commit 5207a1b

Please sign in to comment.