Tools don't wear in creative mode v2

- Removed cans (will add again per request)
- Added creative check to global namespace (checking only once as
requested by VanessaE)
This commit is contained in:
MT-Modder
2015-02-28 23:28:16 -05:00
committed by Vanessa Ezekowitz
parent 19f74d11ba
commit b8c9028681
8 changed files with 45 additions and 29 deletions

View File

@ -3,6 +3,7 @@
-- (c) 2012-2013 by RealBadAngel <mk@realbadangel.pl>
technic = rawget(_G, "technic") or {}
technic.creative_mode = minetest.setting_getbool("creative_mode")
technic.tube_inject_item = pipeworks.tube_inject_item or function (pos, start_pos, velocity, item)
local tubed = pipeworks.tube_item(vector.new(pos), item)