mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 06:11:47 +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:
@ -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"]
|
||||
|
Reference in New Issue
Block a user