From c0df8cc9140adadde7de75aa8e7761093e0deacb Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Fri, 16 Apr 2021 10:45:54 -0400 Subject: [PATCH] update home workshop, homedecor, and biome_lib --- build-date | 1 + mods/biome_lib/README.md | 4 +++- mods/biome_lib/init.lua | 6 +++--- mods/biome_lib/settingtypes.txt | 2 +- mods/computers/aliases.lua | 1 + mods/homedecor_kitchen/init.lua | 2 +- 6 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 build-date diff --git a/build-date b/build-date new file mode 100644 index 00000000..08a660e9 --- /dev/null +++ b/build-date @@ -0,0 +1 @@ +20210416-1045 diff --git a/mods/biome_lib/README.md b/mods/biome_lib/README.md index 2cfd09d4..21779e01 100644 --- a/mods/biome_lib/README.md +++ b/mods/biome_lib/README.md @@ -25,4 +25,6 @@ It is primarily intended for mapgen v6, but it should work fine when used with m * biome_lib:find_valid_wall() * biome_lib:is_node_loaded() -For a complete description of these functions as well as several of the internal variables within the mod, [read the API.txt document](https://raw.githubusercontent.com/minetest-mods/biome_lib/master/API.txt) included in this package. +For a complete description of these functions as well as several of the internal variables within the mod, see `API.txt`. + +**Configuration:** This mod has several variables you can set in your `minetest.conf` to change things a bit, from the default nodes it uses, to the debug log level and the block queue behavior. For a list with complete descriptions, see `settingtypes.txt`. diff --git a/mods/biome_lib/init.lua b/mods/biome_lib/init.lua index a59c17c2..27639267 100644 --- a/mods/biome_lib/init.lua +++ b/mods/biome_lib/init.lua @@ -72,8 +72,8 @@ biome_lib.default_grow_nodes = c5 and tableize(c5) or {"default:dirt_with_gras biome_lib.debug_log_level = tonumber(minetest.settings:get("biome_lib_debug_log_level")) or 0 -local rr = tonumber(minetest.settings:get("biome_lib_queue_run_ratio")) or -100 -biome_lib.queue_run_ratio = 100 - rr +local rr = tonumber(minetest.settings:get("biome_lib_queue_ratio")) or -200 +biome_lib.queue_ratio = 100 - rr biome_lib.entries_per_step = math.max(-rr, 1) -- the timer that manages the block timeout is in microseconds, but the timer @@ -559,7 +559,7 @@ end minetest.register_globalstep(function(dtime) if not biome_lib.block_log[1] then return end -- the block log is empty - if math.random(100) > biome_lib.queue_run_ratio then return end + if math.random(100) > biome_lib.queue_ratio then return end for s = 1, biome_lib.entries_per_step do biome_lib.generate_block() end diff --git a/mods/biome_lib/settingtypes.txt b/mods/biome_lib/settingtypes.txt index df804f5d..24558f8a 100644 --- a/mods/biome_lib/settingtypes.txt +++ b/mods/biome_lib/settingtypes.txt @@ -28,7 +28,7 @@ biome_lib_default_ground_nodes (List of default root nodes) string default:dirt_ # that many actions are executed on every single tick, skipping none. # More negative means more throughput, at the expense of lag. On fast PC's, # a setting of between -500 and -2000 might be good. -biome_lib_queue_run_ratio (Queue run ratio) int -100 +biome_lib_queue_ratio (Queue run ratio) int -200 # Minetest's map generator allows neighboring areas to overflow into one # another, to create smooth terrain, but it often hands the map blocks that diff --git a/mods/computers/aliases.lua b/mods/computers/aliases.lua index b37f1f5e..35df60c5 100644 --- a/mods/computers/aliases.lua +++ b/mods/computers/aliases.lua @@ -3,6 +3,7 @@ minetest.register_alias("computer:shefriendSOO_off", "computers:shefriendSOO minetest.register_alias("computer:vanio", "computers:vanio") minetest.register_alias("computer:vanio_off", "computers:vanio_off") minetest.register_alias("computer:slaystation", "computers:slaystation") +minetest.register_alias("computer:slaystation_off", "computers:slaystation_off") minetest.register_alias("computer:slaystation2", "computers:slaystation2") minetest.register_alias("computer:slaystation2_off", "computers:slaystation2_off") minetest.register_alias("computer:specter", "computers:specter") diff --git a/mods/homedecor_kitchen/init.lua b/mods/homedecor_kitchen/init.lua index 8b9ee66a..be5b4020 100644 --- a/mods/homedecor_kitchen/init.lua +++ b/mods/homedecor_kitchen/init.lua @@ -283,7 +283,7 @@ for _, mat in ipairs(counter_materials) do }) homedecor.kitchen_convert_nodes[#homedecor.kitchen_convert_nodes + 1] = "homedecor:kitchen_cabinet"..material - homedecor.kitchen_convert_nodes[#homedecor.kitchen_convert_nodes + 1] = "homedecor:kitchen_cabinet_locked"..material + homedecor.kitchen_convert_nodes[#homedecor.kitchen_convert_nodes + 1] = "homedecor:kitchen_cabinet"..material.."_locked" end