Skip to content

Commit

Permalink
Stupid, Stupid, Stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
GhzGarage committed Jun 27, 2021
1 parent 560e823 commit 1139675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ AddEventHandler('qb-vineyard:server:loadIngredients', function()
local grape = xPlayer.Functions.GetItemByName('grape')

if xPlayer.PlayerData.items ~= nil then
if (grape ~= nil) then
if grape ~= nil then
if grape.amount >= 23 then

xPlayer.Functions.RemoveItem("grape", 23, false)
Expand All @@ -42,7 +42,7 @@ AddEventHandler('qb-vineyard:server:grapeJuice', function()
local grape = xPlayer.Functions.GetItemByName('grape')

if xPlayer.PlayerData.items ~= nil then
if grape > 0 then
if grape ~= nil then
if grape.amount >= 16 then

xPlayer.Functions.RemoveItem("grape", 16, false)
Expand Down

0 comments on commit 1139675

Please sign in to comment.