Skip to content

Commit

Permalink
Adds context for additional error mentioned in jbruechert#17
Browse files Browse the repository at this point in the history
Error is due to gardens attempting to use the existing gardens object.
Error can be safely ignored.
  • Loading branch information
jakimfett committed Oct 31, 2020
1 parent b8aee8b commit dd898e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gardens/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
]]

-- Let the server console know the initialization is beginning.
core.log("[Agriculture:Gardens] Initialization begins...")

-- warning generated in main console log, @todo check for variable exists, like the '-z' option for Bash?
core.log("[Agriculture:Gardens] Attempting to use any pre-existing 'gardens' object:")
-- this bit uses an existing `gardens` object, or creates a new one, which is pretty nifty actually.
gardens = gardens or {}
core.log("(this warning may be safely ignored)")

gardens.registered_garden_items = {}

-- legacy
Expand Down Expand Up @@ -160,3 +168,7 @@ else
place_on = {"default:dirt_with_grass", "default:dirt_with_dry_grass"}
})
end

-- Let the server console know the initialization is done
core.log("[Agriculture:Gardens] Initialization is complete.")

0 comments on commit dd898e2

Please sign in to comment.