removed debug code
This commit is contained in:
parent
13b78ff838
commit
9f596f99e2
@ -17,7 +17,6 @@ end
|
||||
local function try_drain_energy(target_pos, amount) ---
|
||||
--- Returns true if drained, false otherwise
|
||||
--- Removes amount energy from target_pos if energy >= amount
|
||||
minetest.debug("try_drain")
|
||||
local target = minetest.get_meta(target_pos)
|
||||
local current = target:get_int("energy")
|
||||
if current >= amount then
|
||||
@ -48,7 +47,6 @@ end
|
||||
local function on_construct(pos, player)
|
||||
player:get_meta():set_string(NAME .. ":quarry_pos" , minetest.pos_to_string(pos))
|
||||
|
||||
minetest.debug("on_construct")
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec", FORMSPEC)
|
||||
local inventory = meta:get_inventory()
|
||||
@ -107,7 +105,6 @@ local function on_marker_placed(pos, quarry_pos, player)
|
||||
end
|
||||
|
||||
-- Set quarry metadata
|
||||
minetest.debug("on marker placed")
|
||||
local meta = minetest.get_meta(quarry_pos)
|
||||
meta:set_string("marker", minetest.pos_to_string(pos))
|
||||
meta:set_int("current_frame", 1)
|
||||
@ -184,7 +181,6 @@ end
|
||||
|
||||
|
||||
local function timer_trigger(pos, elapsed)
|
||||
minetest.debug("timer elapsed")
|
||||
local meta = minetest.get_meta(pos)
|
||||
if not meta then assert("FUCK") end
|
||||
local framenum = meta:get_int("current_frame")
|
||||
|
Loading…
x
Reference in New Issue
Block a user