From ee42eeee8d5ed8a8348152d43f516f4ebc12b98a Mon Sep 17 00:00:00 2001 From: The4codeblocks <72419529+The4codeblocks@users.noreply.github.com> Date: Thu, 13 Jul 2023 17:38:48 +0200 Subject: [PATCH 1/2] Make compressed nodes compatible with `compression_api` (#196) --- nodes.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodes.lua b/nodes.lua index a13d36a..351ab6b 100644 --- a/nodes.lua +++ b/nodes.lua @@ -165,19 +165,19 @@ local nodes = { }, ["dirt_compressed"] = { description = S("Compressed Dirt"), - groups = {crumbly=2}, + groups = {crumbly=2, compressed = 1}, is_ground_content = false, sounds = sound_dirt, }, ["cobble_compressed"] = { description = S("Compressed Cobblestone"), - groups = {cracky = 1}, + groups = {cracky = 1, compressed = 1}, is_ground_content = false, sounds = sound_stone, }, ["desert_cobble_compressed"] = { description = S("Compressed Desert Cobblestone"), - groups = {cracky = 1}, + groups = {cracky = 1, compressed = 1}, is_ground_content = false, sounds = sound_stone, }, From 79a0c76d40d729daff3ce4a2a43cd88814ea804a Mon Sep 17 00:00:00 2001 From: David Leal Date: Mon, 17 Jul 2023 17:10:18 -0600 Subject: [PATCH 2/2] Fix LuaCheck warning (#198) --- stairsplus/common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stairsplus/common.lua b/stairsplus/common.lua index 6d09ab5..aee1e6a 100644 --- a/stairsplus/common.lua +++ b/stairsplus/common.lua @@ -172,7 +172,7 @@ stairsplus.register_single = function(category, alternate, info, modname, subnam end end - if fields.drop and not (type(fields.drop) == "table") then + if fields.drop and (type(fields.drop) ~= "table") then def.drop = modname.. ":" .. category .. "_" .. fields.drop .. alternate end