SmallJoker / simple_protection

Minetest fixed-grid quadratic area protection mod with graphical area "minimap"
11 stars 6 forks source link

s_protect.claim_to_dig = true -> server crash #12

Closed d-stephane closed 7 years ago

d-stephane commented 7 years ago

Hi,

I have a problem : the server crashes if i put a block out of the protected area. My server version : 0.4.15

My config :

s_protect.claim_size = 16
s_protect.claim_height = 80
s_protect.start_underground = 20 s_protect.underground_claim = false s_protect.underground_limit = -300 s_protect.claim_return = true s_protect.claim_to_dig = true s_protect.area_list = true s_protect.max_claims = 100

I just changed the setting : s_protect.claim_to_dig

Log :

2017-07-03 01:27:01: ERROR[Main]: ServerError: Lua: Runtime error from mod 'default' in callback item_OnPlace(): ...test-0.4.15/bin/../mods/simple_protection/protection.lua:33: attempt to index local 'data' (a nil value) 2017-07-03 01:27:01: ERROR[Main]: stack traceback: 2017-07-03 01:27:01: ERROR[Main]: ...test-0.4.15/bin/../mods/simple_protection/protection.lua:33: in function <...test-0.4.15/bin/../mods/simple_protection/protection.lua:17>

SmallJoker commented 7 years ago

Thanks, fixed. 2cdb431 EDIT: Your Minetest version is outdated, 0.4.16 would be the newest one.