summaryrefslogtreecommitdiff
path: root/gamemode/init.lua
diff options
context:
space:
mode:
authorScott <scotth0828@gmail.com>2016-05-03 14:38:36 -0400
committerScott <scotth0828@gmail.com>2016-05-03 14:38:36 -0400
commit9fb69ba8eef9dd3d2f922d98588286df98c0cf08 (patch)
tree09d923b778b7a1b838001cc53c4e6c35b103fe99 /gamemode/init.lua
parente2fc0bfe5beea9b2a2966eb94287d106649d8f2b (diff)
downloadgmstranded-9fb69ba8eef9dd3d2f922d98588286df98c0cf08.tar.gz
gmstranded-9fb69ba8eef9dd3d2f922d98588286df98c0cf08.tar.bz2
gmstranded-9fb69ba8eef9dd3d2f922d98588286df98c0cf08.zip
Updated gravestone
Diffstat (limited to 'gamemode/init.lua')
-rw-r--r--gamemode/init.lua4
1 files changed, 2 insertions, 2 deletions
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