Skip to content

Commit e3d192c

Browse files
committed
StackInv Bug fixed.
1 parent 5b50313 commit e3d192c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nutscript/gamemode/sh_util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ function nut.util.StackInv(inventory, class, quantity, data)
624624
local stack, index
625625
quantity = quantity or 1
626626

627-
if (!IsValid(data)) then
627+
if (data == nil || type(data) != "table") then
628628
data = { };
629629
end
630630

0 commit comments

Comments
 (0)