mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-26 09:03:46 +01:00
print removed
This commit is contained in:
parent
418a338ddf
commit
b71c0e869c
@ -69,7 +69,6 @@ local function register_battery(ext, percent, nici)
|
|||||||
|
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
local percent = calc_percent(tonumber(oldmetadata.fields.content))
|
local percent = calc_percent(tonumber(oldmetadata.fields.content))
|
||||||
print("percent", percent)
|
|
||||||
local stack
|
local stack
|
||||||
if percent > 95 then
|
if percent > 95 then
|
||||||
stack = ItemStack("sl_controller:battery")
|
stack = ItemStack("sl_controller:battery")
|
||||||
@ -82,7 +81,6 @@ local function register_battery(ext, percent, nici)
|
|||||||
else
|
else
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
print("percent", percent)
|
|
||||||
local inv = minetest.get_inventory({type="player", name=digger:get_player_name()})
|
local inv = minetest.get_inventory({type="player", name=digger:get_player_name()})
|
||||||
inv:add_item("main", stack)
|
inv:add_item("main", stack)
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user