From 5ca195b0a345249e9bb5aba7dbc1f5fc8fbe251b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tin=20=C5=A0vagelj?= Date: Fri, 12 Feb 2021 22:19:43 +0100 Subject: [PATCH] Removed gravity affected nodes from default registrations. Removed nodes which are unlikely to be used. --- stairsplus/registrations.lua | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/stairsplus/registrations.lua b/stairsplus/registrations.lua index 9b5457a..18d96d1 100644 --- a/stairsplus/registrations.lua +++ b/stairsplus/registrations.lua @@ -15,7 +15,7 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks: "brick", "bronzeblock", "cave_ice", - "clay", + --"clay", "coalblock", "cobble", "copperblock", @@ -40,12 +40,12 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks: --"dirt_with_grass", --"dirt_with_rainforest_litter", --"dirt_with_snow", - "dirt", + --"dirt", --"dry_dirt_with_dry_grass", - "dry_dirt", + --"dry_dirt", "glass", "goldblock", - "gravel", + --"gravel", "ice", "jungletree", "junglewood", @@ -57,29 +57,29 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks: "obsidian", "obsidianbrick", --"permafrost_with_moss", - "permafrost_with_stones", - "permafrost", + --"permafrost_with_stones", + --"permafrost", "pine_bush_needles", "pine_tree", "pine_wood", - "sand", + --"sand", "sandstone_block", "sandstone", "sandstonebrick", - "silver_sand", + --"silver_sand", "silver_sandstone_block", "silver_sandstone_brick", "silver_sandstone", "snowblock", "steelblock", "stone_block", - "stone_with_coal", - "stone_with_copper", - "stone_with_diamond", - "stone_with_gold", - "stone_with_iron", - "stone_with_mese", - "stone_with_tin", + --"stone_with_coal", + --"stone_with_copper", + --"stone_with_diamond", + --"stone_with_gold", + --"stone_with_iron", + --"stone_with_mese", + --"stone_with_tin", "stone", "stonebrick", "tinblock", @@ -104,11 +104,6 @@ for _, name in pairs(default_nodes) do ndef.paramtype2 = nil end - -- Microblock variants of falling nodes should not fall - if ndef.groups and ndef.groups["falling_node"] then - ndef.groups["falling_node"] = 0 - end - mod = "moreblocks" stairsplus:register_all(mod, name, nodename, ndef) minetest.register_alias_force("stairs:stair_" .. name, mod .. ":stair_" .. name)