remove debug logging

This commit is contained in:
chmodsayshello 2022-07-22 19:07:49 +00:00
parent 6cca4ca805
commit 614c4a41e2
1 changed files with 0 additions and 6 deletions

View File

@ -86,15 +86,12 @@ minetest.register_node("mcl_beacons:beacon", {
end,
on_receive_fields = function(pos, formname, fields, sender)
if fields.swiftness or fields.regeneration or fields.leaping or fields.strenght then
minetest.log("field recived")
local sender_name = sender:get_player_name()
local power_level = beacon_blockcheck(pos)
if minetest.is_protected(pos, sender_name) then
minetest.record_protection_violation(pos, sender_name)
minetest.log("returned prot")
return
elseif power_level == 0 then
minetest.log("returned pw")
return
end
@ -105,7 +102,6 @@ minetest.register_node("mcl_beacons:beacon", {
if input:is_empty() then
return
end
minetest.log("Not empty!")
local valid_item = false
@ -189,8 +185,6 @@ local function effect_player(effect,pos,power_level, effect_level)
elseif effect == "regeneration" then
mcl_potions.regeneration_func(obj2, effect_level, 16)
return
else
minetest.log("invalid effect")
end
end
end