mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-22 15:23:43 +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)
|
||||
local percent = calc_percent(tonumber(oldmetadata.fields.content))
|
||||
print("percent", percent)
|
||||
local stack
|
||||
if percent > 95 then
|
||||
stack = ItemStack("sl_controller:battery")
|
||||
@ -82,7 +81,6 @@ local function register_battery(ext, percent, nici)
|
||||
else
|
||||
return
|
||||
end
|
||||
print("percent", percent)
|
||||
local inv = minetest.get_inventory({type="player", name=digger:get_player_name()})
|
||||
inv:add_item("main", stack)
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user