Liquid Tanks: Add protection support

master
Thomas--S 2020-09-08 21:39:34 +02:00
parent 5fbfe95011
commit 92504a6bec
1 changed files with 4 additions and 0 deletions

View File

@ -203,6 +203,10 @@ local function empty_on_punch(pos, nvm, full_container, item_count)
end
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 mem = techage.get_mem(pos)
mem.blocking_time = mem.blocking_time or 0