diff options
Diffstat (limited to 'gamemode/itemsystem')
| -rw-r--r-- | gamemode/itemsystem/common_plantable.lua | 2 |
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 |
