master
rnd1 2015-11-12 10:14:00 +01:00
parent 94284119f7
commit 97f797ca29
2 changed files with 2 additions and 2 deletions

View File

@ -28,6 +28,6 @@ detailed features:
of future upgrades.
- 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
- 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

View File

@ -260,7 +260,7 @@ function protector.count(pos, mode)
for _, p in ipairs(positions) do
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)
end