Revert "Prevent filling up the inventory with tools."
This reverts commit a819b41782de9960acec6728a6235ee7c8450a8c. Replaced with stackable player tools.
This commit is contained in:
parent
a819b41782
commit
66b27bd711
@ -1440,13 +1440,7 @@ for _, names in ipairs({
|
|||||||
itemstack:add_item(name)
|
itemstack:add_item(name)
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
local inv = clicker:get_inventory()
|
clicker:get_inventory():add_item("main", name)
|
||||||
-- prevent stacking of tools, but not nexus blocks.
|
|
||||||
if name == "boxes:nexus" then
|
|
||||||
inv:add_item("main", name)
|
|
||||||
elseif not inv:contains_item("main", name) then
|
|
||||||
inv:add_item("main", name)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user