summaryrefslogtreecommitdiff
path: root/gamemode/itemsystem
diff options
context:
space:
mode:
authorScott <scotth0828@gmail.com>2016-05-21 17:52:26 -0400
committerScott <scotth0828@gmail.com>2016-05-21 17:52:26 -0400
commit38862d94897411ad1f56e9fa2fba1a4d703cd783 (patch)
tree1d834dceec8b296c1a531b844a6c811d78d17f51 /gamemode/itemsystem
parent10ed1a54523fdd5bcddfbccf44dd9c0a15ab8357 (diff)
downloadgmstranded-38862d94897411ad1f56e9fa2fba1a4d703cd783.tar.gz
gmstranded-38862d94897411ad1f56e9fa2fba1a4d703cd783.tar.bz2
gmstranded-38862d94897411ad1f56e9fa2fba1a4d703cd783.zip
Fixed plant max limit bug
Diffstat (limited to 'gamemode/itemsystem')
-rw-r--r--gamemode/itemsystem/common_plantable.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/gamemode/itemsystem/common_plantable.lua b/gamemode/itemsystem/common_plantable.lua
index 9eefab1..d99a8d5 100644
--- a/gamemode/itemsystem/common_plantable.lua
+++ b/gamemode/itemsystem/common_plantable.lua
@@ -18,7 +18,7 @@ local function plant(player, resourcename)
assert(tbl.GrowTime != nil,tbl.Name .. " .GrowTime is nil!")
assert(isfunction(tbl.OnGrow),tbl.Name .. " .OnGrow is not a table")
- if(player:GetNWInt("plants") > GetConVar("gms_PlantLimit"):GetInt()) then
+ if(player:GetNWInt("plants") > GetConVar("gms_PlantLimit"):GetInt()-1) then
player:SendMessage( "You man only have " .. GetConVar("gms_PlantLimit"):GetInt() .. " plants at a time.", 3, Color( 10, 200, 10, 255 ) )
return
end