1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-19 06:00:19 +02:00

get rid of last vestages of "infinite stacks" special handling

just checks for creative mode/priv directly instead, as needed.
This commit is contained in:
Vanessa Ezekowitz
2017-08-12 17:52:29 -04:00
parent 6349c53824
commit f03e71397a
4 changed files with 8 additions and 11 deletions

View File

@ -89,7 +89,7 @@ for _, c in ipairs(bookcolors) do
if data.title and data.title ~= "" then
meta:set_string("infotext", data.title)
end
if not homedecor.expect_infinite_stacks then
if not creative.is_enabled_for(plname) then
itemstack:take_item()
end
return itemstack