master
parent
94284119f7
commit
97f797ca29
|
@ -28,6 +28,6 @@ detailed features:
|
||||||
of future upgrades.
|
of future upgrades.
|
||||||
- building permissions: owner of protector with most counts in the area can upgrade other player protector by right click for free.
|
- building permissions: owner of protector with most counts in the area can upgrade other player protector by right click for free.
|
||||||
This way even poorer players place 1 protector in expensive areas if allowed
|
This way even poorer players place 1 protector in expensive areas if allowed
|
||||||
- bug fixes: now digging protector with no owner no longer decreases protector count
|
- bug fixes: now digging protector with no owner no longer decreases protector counts
|
||||||
|
|
||||||
INSTALLATION: extract into directory called "protector" inside minetest mod directory
|
INSTALLATION: extract into directory called "protector" inside minetest mod directory
|
2
init.lua
2
init.lua
|
@ -260,7 +260,7 @@ function protector.count(pos, mode)
|
||||||
for _, p in ipairs(positions) do
|
for _, p in ipairs(positions) do
|
||||||
meta = minetest.get_meta(p)
|
meta = minetest.get_meta(p)
|
||||||
|
|
||||||
count = meta:get_int("count")-1;
|
count = meta:get_int("count")-1;if count<0 then count = 0 end
|
||||||
meta:set_int("count", count)
|
meta:set_int("count", count)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue