Revert "Prevent filling up the inventory with tools."

This reverts commit a819b41782de9960acec6728a6235ee7c8450a8c.

Replaced with stackable player tools.
This commit is contained in:
Auke Kok 2019-12-09 19:51:54 -08:00
parent a819b41782
commit 66b27bd711

View File

@ -1440,13 +1440,7 @@ for _, names in ipairs({
itemstack:add_item(name)
return itemstack
end
local inv = clicker:get_inventory()
-- 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
clicker:get_inventory():add_item("main", name)
end
return itemstack
end,