Liquid Tanks: Add protection support
This commit is contained in:
parent
5fbfe95011
commit
92504a6bec
@ -203,6 +203,10 @@ local function empty_on_punch(pos, nvm, full_container, item_count)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function techage.liquid.on_punch(pos, node, puncher, pointed_thing)
|
function techage.liquid.on_punch(pos, node, puncher, pointed_thing)
|
||||||
|
if minetest.is_protected(pos, puncher:get_player_name()) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local nvm = techage.get_nvm(pos)
|
local nvm = techage.get_nvm(pos)
|
||||||
local mem = techage.get_mem(pos)
|
local mem = techage.get_mem(pos)
|
||||||
mem.blocking_time = mem.blocking_time or 0
|
mem.blocking_time = mem.blocking_time or 0
|
||||||
|
Loading…
Reference in New Issue
Block a user