Skip to content

Commit 1c6fb43

Browse files
authored
Merge pull request #112 from LiliaFramework/codex/fix-nil-value-call-in-shared.lua
Fix extended description menu action
2 parents ad87fa4 + 180c5b2 commit 1c6fb43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

extendeddescriptions/pim/shared.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
AddInteraction(L("openDetDescLabel"), {
2-
runServer = false,
1+
AddInteraction(L("openDetDescLabel"), {
2+
runServer = true,
33
shouldShow = function(_, target) return IsValid(target) end,
44
onRun = function(client, target)
5+
if not SERVER then return end
56
net.Start("OpenDetailedDescriptions")
67
net.WriteEntity(target)
78
net.WriteString(target:getChar():getData("textDetDescData", nil) or L("openDetDescFallback"))

0 commit comments

Comments
 (0)