From 13aaea70fa5f358836fa6a1e6f5645b45ffc13f0 Mon Sep 17 00:00:00 2001 From: upsilon Date: Sun, 15 Jan 2017 12:12:36 +0100 Subject: [PATCH] Fix some logging messages --- init.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 5c1308b..479e04f 100644 --- a/init.lua +++ b/init.lua @@ -62,21 +62,22 @@ local function arrow_step(self, dtime) end if not self.last_pos then - logging(" hitted a node during its first call to the step function", "warning") + logging("hitted a node during its first call to the step function") put_arrow_back() return end if node and minetest.is_protected(pos, self.player) then -- Forbid hitting nodes in protected areas + logging("hitted a node into a protected area") return end local ret, reason = self.on_hit(pos, self.last_pos, node, obj, player) if ret == false then if reason then - logging(": on_hit function failed for reason: "..reason, "warning") + logging(": on_hit function failed for reason: "..reason) else - logging(": on_hit function failed", "warning") + logging(": on_hit function failed") end put_arrow_back()