You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: technic/tools/cans.lua
+2-10
Original file line number
Diff line number
Diff line change
@@ -36,11 +36,7 @@ function technic.register_can(d)
36
36
localcharge=get_can_level(itemstack)
37
37
ifcharge==data.can_capacitythenreturnend
38
38
ifminetest.is_protected(pointed_thing.under, user:get_player_name()) then
39
-
minetest.log("action", S("@1 tried to take @2 at protected position @3 with a @4",
40
-
user:get_player_name(),
41
-
node.name,
42
-
minetest.pos_to_string(pointed_thing.under),
43
-
data.can_name))
39
+
minetest.log("action", user:get_player_name().." tried to take "..node.name.." at protected position "..minetest.pos_to_string(pointed_thing.under).." with a "..data.can_name)
44
40
return
45
41
end
46
42
minetest.remove_node(pointed_thing.under)
@@ -64,11 +60,7 @@ function technic.register_can(d)
64
60
localcharge=get_can_level(itemstack)
65
61
ifcharge==0thenreturnend
66
62
ifminetest.is_protected(pos, user:get_player_name()) then
67
-
minetest.log("action", S("@1 tried to place @2 at protected position @3 with a @4",
68
-
user:get_player_name(),
69
-
data.liquid_source_name,
70
-
minetest.pos_to_string(pos),
71
-
data.can_name))
63
+
minetest.log("action", user:get_player_name().." tried to place "..data.liquid_source_name.." at protected position "..minetest.pos_to_string(pos).." with a "..data.can_name)
0 commit comments