From 093e9b0b08b56e1471c3d8c1aeae950eff9c12e2 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 28 Jan 2018 19:25:05 +0100 Subject: [PATCH] Declare observers not opaque --- GROUPS.md | 1 + mods/CORE/mcl_autogroup/init.lua | 3 ++- mods/ITEMS/REDSTONE/mcl_observers/init.lua | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/GROUPS.md b/GROUPS.md index 688441d0..cdfd2c07 100644 --- a/GROUPS.md +++ b/GROUPS.md @@ -95,6 +95,7 @@ These groups are used mostly for informational purposes * `solid=1`: Solid full-cube block (automatically assigned) * `opaque=1`: Opaque block (automatically assigned) * `not_solid=1`: Block is not solid (only assign this group for nodes which are automatically detected as “solid” in error +* `not_opaque=1`: Block is not opaque (only assign this group for nodes which are automatically detected as “opaque” in error * `fire=1`: Fire * `water=1`: Water * `lava=1`: Lava diff --git a/mods/CORE/mcl_autogroup/init.lua b/mods/CORE/mcl_autogroup/init.lua index f6d0e259..78067c80 100644 --- a/mods/CORE/mcl_autogroup/init.lua +++ b/mods/CORE/mcl_autogroup/init.lua @@ -82,7 +82,8 @@ local overwrite = function() groups_changed = true end -- Automatically assign the “opaque” group for opaque nodes - if not (ndef.paramtype == "light" or ndef.sunlight_propagates) then + if (not (ndef.paramtype == "light" or ndef.sunlight_propagates)) and + (ndef.groups.not_opaque == 0 or ndef.groups.not_opaque == nil) then newgroups.opaque = 1 groups_changed = true end diff --git a/mods/ITEMS/REDSTONE/mcl_observers/init.lua b/mods/ITEMS/REDSTONE/mcl_observers/init.lua index 825a8c9a..ece8e39c 100644 --- a/mods/ITEMS/REDSTONE/mcl_observers/init.lua +++ b/mods/ITEMS/REDSTONE/mcl_observers/init.lua @@ -80,7 +80,7 @@ mesecon.register_node("mcl_observers:observer", sounds = mcl_sounds.node_sound_stone_defaults(), paramtype2 = "facedir", -- TODO: Add to craft guide and creative inventory when it's useful - groups = {pickaxey=1, material_stone=1, not_in_craft_guide=1, not_in_creative_inventory=1 }, + groups = {pickaxey=1, material_stone=1, not_opaque=1, not_in_craft_guide=1, not_in_creative_inventory=1 }, on_rotate = false, _mcl_blast_resistance = 17.5, _mcl_hardness = 3.5, @@ -133,7 +133,7 @@ mesecon.register_node("mcl_observers:observer_down", { is_ground_content = false, sounds = mcl_sounds.node_sound_stone_defaults(), - groups = {pickaxey=1, material_stone=1, not_in_creative_inventory=1 }, + groups = {pickaxey=1, material_stone=1, not_opaque=1, not_in_creative_inventory=1 }, on_rotate = false, _mcl_blast_resistance = 17.5, _mcl_hardness = 3.5, @@ -181,7 +181,7 @@ mesecon.register_node("mcl_observers:observer_up", { is_ground_content = false, sounds = mcl_sounds.node_sound_stone_defaults(), - groups = {pickaxey=1, material_stone=1, not_in_creative_inventory=1 }, + groups = {pickaxey=1, material_stone=1, not_opaque=1, not_in_creative_inventory=1 }, on_rotate = false, _mcl_blast_resistance = 17.5, _mcl_hardness = 3.5,