4aiman wrote:CraigyDavi wrote:This mod should be updated and use the minetest.is_protected feature.
Would it be faster then?
Probably. And it would mean that people cannot place water, doors and use screwdrivers ect. inside protected areas.
4aiman wrote:CraigyDavi wrote:This mod should be updated and use the minetest.is_protected feature.
Would it be faster then?
CraigyDavi wrote:cannot place water
TenPlus1 wrote:Thanks for the changes Krock, worked fine although I did keep my formspec layout (easier to use with a back button)... Now we just gotta sort the rotatable objects and water buckets getting through protection... hrm...
if minetest.is_protected(node_pos, player_name)
return
end
local function check_protection(pos, name, text)
if minetest.is_protected(pos, name) then
minetest.log("action", (name ~= "" and name or "A mod")
.. " tried to " .. text
.. " at protected position "
.. minetest.pos_to_string(pos)
.. " with a bucket")
minetest.record_protection_violation(pos, name)
return true
end
return false
end
TenPlus1 wrote:I just noticed that the new minetest bucket mod already has this included (and it still allows liquids to be placed in protected aread):
function minetest.is_protected(pos, name)
return false
end
Thedarksoldier wrote:what does this mode do
Users browsing this forum: No registered users and 14 guests