Merge pull request #27 from Thomas--S/tank_protection
Liquid Tanks: Add protection support
This commit is contained in:
commit
be8e9b3b8c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user