Skip to content

Commit e6d9abc

Browse files
committed
Remove Debug Print, Bug Fix.
1 parent 2c71857 commit e6d9abc

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

nutscript/gamemode/derma/cl_charmenu.lua

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -252,19 +252,21 @@ function PANEL:Init()
252252
end, RIGHT)
253253
end)
254254
end
255-
256-
local charAmount = table.Count(LocalPlayer().characters);
257-
for k, v in pairs(LocalPlayer().characters) do
258-
if (v.banned) then
259-
charAmount = charAmount - 1;
255+
256+
local charAmount = 0;
257+
258+
if(LocalPlayer().characters != nil) then
259+
charAmount = table.Count(LocalPlayer().characters);
260+
for k, v in pairs(LocalPlayer().characters) do
261+
if (v.banned) then
262+
charAmount = charAmount - 1;
263+
end
260264
end
261265
end
262-
266+
263267
if (nut.lastCharIndex) then
264268
charAmount = charAmount - 1;
265269
end;
266-
267-
print(charAmount);
268270

269271
if (charAmount > 0) then
270272
AddButton("load", function()
@@ -280,7 +282,6 @@ function PANEL:Init()
280282
self.charStage = {};
281283

282284
for k, v in SortedPairsByMemberValue(LocalPlayer().characters, "id") do
283-
PrintTable(v);
284285
if (k != "__SortedIndex" and !v.banned and v.id != nut.lastCharIndex) then
285286
local charSelect = vgui.Create("AdvNut_CharacterSelect", self);
286287
local insertIndex = #self.charStage + 1;

nutscript/gamemode/kernel/cl_kernel.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ function GM:HUDPaintTargetPlayer(client, x, y, alpha)
314314
if (client:IsTyping()) then
315315
local text = "입력중..."
316316
local typingText = client:GetNetVar("typing")
317+
317318

318319
if (nut.config.showTypingText and typingText and type(typingText) == "string") then
319320
text = "("..typingText..")"

nutscript/gamemode/libs/sh_chatbox.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ if (CLIENT) then
264264
end)
265265
else
266266
netstream.Hook("nut_Typing", function(client, data)
267-
client:SetNetVar("typing", data, client:GetPos())
267+
client:SetNetVar("typing", data);
268+
netstream.Start(client, AdvNut.util.CreateIdentifier("ClientChatOpen"), data);
268269

269270
AdvNut.hook.Run("PlayerTyping", client, data)
270271
end)

nutscript/gamemode/sh_config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ end
1313
nut.config = nut.config or {}
1414

1515
// Don't Touch This, This's Version Counter. //
16-
nut.config.frameworkVersion = "0.20";
16+
nut.config.frameworkVersion = "0.20.1";
1717

1818
-- What language Nutscript shall use.
1919
nut.config.language = "korean"

0 commit comments

Comments
 (0)