From 1fbab7451e70f0dd82d8245df03af918665d9e9c Mon Sep 17 00:00:00 2001 From: Treer Date: Fri, 22 Jan 2021 15:35:50 +1100 Subject: [PATCH 1/2] Update README.md --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0b856af..9481384 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Nether Mod for Minetest, with Portals API. -Enables Nether portals to be built, opening a gateway between the surface -realm and one of lava and netherrack, with rumors of a passageway to a great -magma ocean. +Allows Nether portals to be constructed, opening a gateway between the surface +realm and one of lava and netherrack, with rumors of a passageway through the +netherrack to a great magma ocean. To view the options provided by this mod, see settingtypes.txt or go to "Settings"->"All Settings"->"Mods"->"nether" in the game. @@ -23,6 +23,11 @@ might need to be constructed from basalt, thus requiring a journey through the nether first, or basalt might be a crafting ingredient required to reach a particular branch of the tech-tree. +Netherbrick tools are provided (pick, shovel, axe, & sword), see tools.lua + +Nether Portals can allow surface fast-travel. + + ## License of source code: Copyright (C) 2013 PilzAdam From 979493ed64fd4c996f55d2e9d35055cef937e6ce Mon Sep 17 00:00:00 2001 From: Treer Date: Tue, 26 Jan 2021 19:49:10 +1100 Subject: [PATCH 2/2] Fix nil reference The error below was reported, so handle the existence of a mod called "bucket" which doesn't have any liquids field: Runtime error from mod 'nether' in callback on_mods_loaded(): /mods/environment/nether/nodes.lua:378: attempt to index field 'liquids' (a nil value) stack traceback: /mods/environment/nether/nodes.lua:378: in function /mods/environment/nether/nodes.lua:373 /minetest/builtin/game/register.lua:429: in function /minetest/builtin/game/register.lua:413 --- nodes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.lua b/nodes.lua index dea7070..afb6fb4 100644 --- a/nodes.lua +++ b/nodes.lua @@ -374,7 +374,7 @@ minetest.register_on_mods_loaded(function() -- register a bucket of Lava-sea source - but make it just the same bucket as default lava. -- (by doing this in register_on_mods_loaded we don't need to declare a soft dependency) - if minetest.get_modpath("bucket") and minetest.global_exists("bucket") then + if minetest.get_modpath("bucket") and minetest.global_exists("bucket") and type(bucket.liquids) == "table" then local lava_bucket = bucket.liquids["default:lava_source"] if lava_bucket ~= nil then local lavasea_bucket = {}