From 9fb69ba8eef9dd3d2f922d98588286df98c0cf08 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 3 May 2016 14:38:36 -0400 Subject: Updated gravestone --- gamemode/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gamemode/init.lua') diff --git a/gamemode/init.lua b/gamemode/init.lua index b28219a..2d15d1f 100644 --- a/gamemode/init.lua +++ b/gamemode/init.lua @@ -80,7 +80,7 @@ net.Receive('givePlayerResource', function(len, ply) local resSlot = net.ReadInt(32) local restbl = ply:GetEyeTrace().Entity.deathResources local tbl1 = string.Split(restbl[resSlot], " ") - local tbl2 = string.Split(tbl1[2], "x") + local tbl2 = string.Split(tbl1[#tbl1], "x") local amt = tbl2[2] ply:IncResource( ResToGive, Amount ) @@ -90,7 +90,7 @@ net.Receive('givePlayerResource', function(len, ply) table.remove(restbl, resSlot) else amt = amt - Amount - restbl[resSlot] = tbl1[1] .. " x" .. amt + restbl[resSlot] = ResToGive .. " x" .. amt end -- cgit v1.2.3-70-g09d2