1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 14:16:06 +02:00

Fix dyes' craft recipes (and peace_areas)

- Fix peace_areas when player's pos is nil
 - Solves #245
 - Add dyes tab to the spreadsheet
This commit is contained in:
LeMagnesium
2015-08-28 22:00:07 +02:00
parent 413dd24bca
commit 5f1aa7a47b
3 changed files with 17 additions and 16 deletions

View File

@ -7,6 +7,7 @@ peace_areas = {areas = {}}
minetest.register_on_punchplayer(function(player, hitter)
local pos = player:getpos()
if pos == nil then return end
for name, positions in pairs(peace_areas.areas) do
local pos1 = positions["pos1"]
local pos2 = positions["pos2"]