From 38862d94897411ad1f56e9fa2fba1a4d703cd783 Mon Sep 17 00:00:00 2001 From: Scott Date: Sat, 21 May 2016 17:52:26 -0400 Subject: Fixed plant max limit bug --- gamemode/itemsystem/common_plantable.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2