milan2018 #6

Merged
milan merged 5 commits from milan2018 into master 2020-04-24 20:05:53 +02:00
Showing only changes of commit f0dd4e0f59 - Show all commits

View file

@ -269,7 +269,7 @@ minetest.register_node("basic_machines:battery_0", {
can_dig = function(pos) can_dig = function(pos)
local meta = minetest.get_meta(pos); local meta = minetest.get_meta(pos);
if meta:get_int("upgrade")~=0 then return false else return true end if meta:get_int("upgrade")~=0 then return false else return true end
end end,
tube = { tube = {
insert_object = function(pos, node, stack, direction) insert_object = function(pos, node, stack, direction)
@ -404,7 +404,7 @@ minetest.register_node("basic_machines:generator", {
can_dig = function(pos) can_dig = function(pos)
local meta = minetest.get_meta(pos); local meta = minetest.get_meta(pos);
if meta:get_int("upgrade")~=0 then return false else return true end if meta:get_int("upgrade")~=0 then return false else return true end
end end,
tube = { tube = {
insert_object = function(pos, node, stack, direction) insert_object = function(pos, node, stack, direction)