1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-15 04:10:18 +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

@ -11,12 +11,8 @@ local modpath = minetest.get_modpath("homedecor")
local S = homedecor_i18n.gettext
homedecor = {
modpath = modpath,
-- infinite stacks
expect_infinite_stacks = minetest.settings:get_bool("creative_mode") and not minetest.get_modpath("unified_inventory")
}
homedecor = {}
homedecor.modpath = modpath
-- Determine if the item being pointed at is the underside of a node (e.g a ceiling)
function homedecor.find_ceiling(itemstack, placer, pointed_thing)