From 7196485294fa7d6ab6994017e8f3670c64407a94 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 28 Jan 2018 20:21:02 +0100 Subject: [PATCH] Remove sunlight propagation for various nodes --- mods/ITEMS/REDSTONE/mesecons_pistons/init.lua | 18 ------------------ .../REDSTONE/mesecons_solarpanel/init.lua | 4 ---- mods/ITEMS/mcl_beds/api.lua | 2 -- mods/ITEMS/mcl_cauldrons/init.lua | 2 -- mods/ITEMS/mcl_chests/init.lua | 5 ----- mods/ITEMS/mcl_core/nodes_liquid.lua | 4 ---- mods/ITEMS/mcl_core/nodes_misc.lua | 2 -- mods/ITEMS/mcl_hoppers/init.lua | 2 -- mods/ITEMS/mcl_mobspawners/init.lua | 1 - mods/ITEMS/mcl_nether/init.lua | 1 - mods/ITEMS/mcl_stairs/api.lua | 2 -- mods/ITEMS/mcstair/init.lua | 2 -- 12 files changed, 45 deletions(-) diff --git a/mods/ITEMS/REDSTONE/mesecons_pistons/init.lua b/mods/ITEMS/REDSTONE/mesecons_pistons/init.lua index e5b6045b2..8c290a50b 100644 --- a/mods/ITEMS/REDSTONE/mesecons_pistons/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_pistons/init.lua @@ -193,7 +193,6 @@ minetest.register_node("mesecons_pistons:piston_normal_off", { }, groups = {handy = 1}, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, after_place_node = piston_orientate, @@ -221,7 +220,6 @@ minetest.register_node("mesecons_pistons:piston_normal_on", { }, groups = {handy=1, not_in_creative_inventory = 1}, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, drop = "mesecons_pistons:piston_normal_off", @@ -251,7 +249,6 @@ minetest.register_node("mesecons_pistons:piston_pusher_normal", { "mesecons_piston_pusher_front.png" }, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, after_destruct = piston_remove_base, @@ -292,7 +289,6 @@ minetest.register_node("mesecons_pistons:piston_sticky_off", { }, groups = {handy=1}, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, after_place_node = piston_orientate, @@ -320,7 +316,6 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", { }, groups = {handy=1, not_in_creative_inventory = 1}, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, drop = "mesecons_pistons:piston_sticky_off", @@ -350,7 +345,6 @@ minetest.register_node("mesecons_pistons:piston_pusher_sticky", { "mesecons_piston_pusher_front_sticky.png" }, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, after_destruct = piston_remove_base, @@ -405,7 +399,6 @@ minetest.register_node("mesecons_pistons:piston_up_normal_off", { }, groups = {handy=1, not_in_creative_inventory = 1}, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, drop = "mesecons_pistons:piston_normal_off", @@ -435,7 +428,6 @@ minetest.register_node("mesecons_pistons:piston_up_normal_on", { }, groups = {hanry=1, not_in_creative_inventory = 1}, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, drop = "mesecons_pistons:piston_normal_off", @@ -465,7 +457,6 @@ minetest.register_node("mesecons_pistons:piston_up_pusher_normal", { "mesecons_piston_pusher_top.png^[transformR180", }, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, after_destruct = piston_remove_base, @@ -503,7 +494,6 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_off", { }, groups = {handy=1, not_in_creative_inventory = 1}, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, drop = "mesecons_pistons:piston_sticky_off", @@ -533,7 +523,6 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_on", { }, groups = {handy=1, not_in_creative_inventory = 1}, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, drop = "mesecons_pistons:piston_sticky_off", @@ -563,7 +552,6 @@ minetest.register_node("mesecons_pistons:piston_up_pusher_sticky", { "mesecons_piston_pusher_top.png^[transformR180", }, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, after_destruct = piston_remove_base, @@ -620,7 +608,6 @@ minetest.register_node("mesecons_pistons:piston_down_normal_off", { }, groups = {handy=1, not_in_creative_inventory = 1}, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, drop = "mesecons_pistons:piston_normal_off", @@ -648,7 +635,6 @@ minetest.register_node("mesecons_pistons:piston_down_normal_on", { }, groups = {handy=1, not_in_creative_inventory = 1}, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, drop = "mesecons_pistons:piston_normal_off", @@ -678,7 +664,6 @@ minetest.register_node("mesecons_pistons:piston_down_pusher_normal", { "mesecons_piston_pusher_top.png", }, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, after_destruct = piston_remove_base, @@ -713,7 +698,6 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_off", { }, groups = {handy=1, not_in_creative_inventory = 1}, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, drop = "mesecons_pistons:piston_sticky_off", @@ -741,7 +725,6 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_on", { }, groups = {handy=1, not_in_creative_inventory = 1}, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, drop = "mesecons_pistons:piston_sticky_off", @@ -771,7 +754,6 @@ minetest.register_node("mesecons_pistons:piston_down_pusher_sticky", { "mesecons_piston_pusher_top.png", }, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, after_destruct = piston_remove_base, diff --git a/mods/ITEMS/REDSTONE/mesecons_solarpanel/init.lua b/mods/ITEMS/REDSTONE/mesecons_solarpanel/init.lua index ec455b53d..1c66b6191 100644 --- a/mods/ITEMS/REDSTONE/mesecons_solarpanel/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_solarpanel/init.lua @@ -8,7 +8,6 @@ minetest.register_node("mesecons_solarpanel:solar_panel_on", { wield_image = "jeija_solar_panel.png", wield_scale = { x=1, y=1, z=3 }, paramtype = "light", - sunlight_propagates = true, is_ground_content = false, selection_box = { type = "fixed", @@ -42,7 +41,6 @@ minetest.register_node("mesecons_solarpanel:solar_panel_off", { wield_image = "jeija_solar_panel.png", wield_scale = { x=1, y=1, z=3 }, paramtype = "light", - sunlight_propagates = true, is_ground_content = false, selection_box = { type = "fixed", @@ -117,7 +115,6 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_on", { wield_image = "jeija_solar_panel_inverted.png", wield_scale = { x=1, y=1, z=3 }, paramtype = "light", - sunlight_propagates = true, is_ground_content = false, selection_box = { type = "fixed", @@ -151,7 +148,6 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_off", { wield_image = "jeija_solar_panel_inverted.png", wield_scale = { x=1, y=1, z=3 }, paramtype = "light", - sunlight_propagates = true, is_ground_content = false, selection_box = { type = "fixed", diff --git a/mods/ITEMS/mcl_beds/api.lua b/mods/ITEMS/mcl_beds/api.lua index a8a87c448..407aea978 100644 --- a/mods/ITEMS/mcl_beds/api.lua +++ b/mods/ITEMS/mcl_beds/api.lua @@ -60,7 +60,6 @@ function mcl_beds.register_bed(name, def) drawtype = "nodebox", tiles = def.tiles.bottom, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", is_ground_content = false, stack_max = 1, @@ -183,7 +182,6 @@ function mcl_beds.register_bed(name, def) tiles = def.tiles.top, paramtype = "light", paramtype2 = "facedir", - sunlight_propagates = true, is_ground_content = false, -- FIXME: Should be bouncy=66, but this would be a higher bounciness than slime blocks! groups = {handy = 1, flammable = 3, bed = 2, dig_by_piston=1, bouncy=33, fall_damage_add_percent=-50}, diff --git a/mods/ITEMS/mcl_cauldrons/init.lua b/mods/ITEMS/mcl_cauldrons/init.lua index 440ac0317..8ccd6ce45 100644 --- a/mods/ITEMS/mcl_cauldrons/init.lua +++ b/mods/ITEMS/mcl_cauldrons/init.lua @@ -50,7 +50,6 @@ minetest.register_node("mcl_cauldrons:cauldron", { drawtype = "nodebox", paramtype = "light", is_ground_content = false, - sunlight_propagates = true, groups = {pickaxey=1, deco_block=1, cauldron=1}, node_box = cauldron_nodeboxes[0], selection_box = { type = "regular" }, @@ -80,7 +79,6 @@ local register_filled_cauldron = function(water_level, description, river_water) drawtype = "nodebox", paramtype = "light", is_ground_content = false, - sunlight_propagates = true, groups = {pickaxey=1, not_in_creative_inventory=1, cauldron=(1+water_level)}, node_box = cauldron_nodeboxes[water_level], collision_box = cauldron_nodeboxes[0], diff --git a/mods/ITEMS/mcl_chests/init.lua b/mods/ITEMS/mcl_chests/init.lua index 71086b437..f8a0815cb 100644 --- a/mods/ITEMS/mcl_chests/init.lua +++ b/mods/ITEMS/mcl_chests/init.lua @@ -67,7 +67,6 @@ minetest.register_node("mcl_chests:"..basename, { _doc_items_hidden = hidden, tiles = tiles_table.small, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", stack_max = 64, drop = drop, @@ -175,7 +174,6 @@ minetest.register_node("mcl_chests:"..basename, { minetest.register_node("mcl_chests:"..basename.."_left", { tiles = tiles_table.left, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", groups = {handy=1,axey=1, container=5,not_in_creative_inventory=1, material_wood=1}, drop = drop, @@ -291,7 +289,6 @@ minetest.register_node("mcl_chests:"..basename.."_left", { minetest.register_node("mcl_chests:"..basename.."_right", { tiles = tiles_table.right, paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", groups = {handy=1,axey=1, container=6,not_in_creative_inventory=1, material_wood=1}, drop = drop, @@ -579,7 +576,6 @@ minetest.register_node("mcl_chests:ender_chest", { is_ground_content = false, paramtype = "light", light_source = 7, - sunlight_propagates = true, paramtype2 = "facedir", sounds = mcl_sounds.node_sound_stone_defaults(), drop = "mcl_core:obsidian 8", @@ -674,7 +670,6 @@ for color, desc in pairs(boxtypes) do stack_max = 1, drop = "", paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", -- TODO: Make shulker boxes rotatable -- This doesn't work, it just destroys the inventory: diff --git a/mods/ITEMS/mcl_core/nodes_liquid.lua b/mods/ITEMS/mcl_core/nodes_liquid.lua index 3861595ee..4efea58d4 100644 --- a/mods/ITEMS/mcl_core/nodes_liquid.lua +++ b/mods/ITEMS/mcl_core/nodes_liquid.lua @@ -106,8 +106,6 @@ minetest.register_node("mcl_core:lava_flowing", { animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=6.6} }, }, - paramtype = "light", - sunlight_propagates = true, paramtype2 = "flowingliquid", -- Real light level: 15 (but Minetest caps at 14) light_source = 14, @@ -157,8 +155,6 @@ Lava interacts with water various ways: backface_culling = false, } }, - paramtype = "light", - sunlight_propagates = true, -- Real light level: 15 (but Minetest caps at 14) light_source = 14, sounds = mcl_sounds.node_sound_lava_defaults(), diff --git a/mods/ITEMS/mcl_core/nodes_misc.lua b/mods/ITEMS/mcl_core/nodes_misc.lua index 65685f697..9c85b7013 100644 --- a/mods/ITEMS/mcl_core/nodes_misc.lua +++ b/mods/ITEMS/mcl_core/nodes_misc.lua @@ -32,7 +32,6 @@ minetest.register_node("mcl_core:slimeblock", { tiles = {"mcl_core_slime.png"}, paramtype = "light", use_texture_alpha = true, - sunlight_propagates = true, stack_max = 64, -- According to Minecraft Wiki, bouncing off a slime block from a height off 255 blocks should result in a bounce height of 50 blocks -- bouncy=44 makes the player bounce up to 49.6. This value was chosen by experiment. @@ -57,7 +56,6 @@ minetest.register_node("mcl_core:cobweb", { tiles = {"mcl_core_web.png"}, inventory_image = "mcl_core_web.png", paramtype = "light", - sunlight_propagates = true, liquid_viscosity = 14, liquidtype = "source", liquid_alternative_flowing = "mcl_core:cobweb", diff --git a/mods/ITEMS/mcl_hoppers/init.lua b/mods/ITEMS/mcl_hoppers/init.lua index 1cba594af..dd9a63a5c 100644 --- a/mods/ITEMS/mcl_hoppers/init.lua +++ b/mods/ITEMS/mcl_hoppers/init.lua @@ -21,7 +21,6 @@ local def_hopper = { groups = {pickaxey=1, container=2,deco_block=1,}, drawtype = "nodebox", paramtype = "light", - sunlight_propagates = true, -- FIXME: mcl_hoppers_hopper_inside.png is unused by hoppers. tiles = {"mcl_hoppers_hopper_inside.png^mcl_hoppers_hopper_top.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png"}, node_box = { @@ -181,7 +180,6 @@ local def_hopper_side = { groups = {pickaxey=1, container=2,not_in_creative_inventory=1}, drawtype = "nodebox", paramtype = "light", - sunlight_propagates = true, paramtype2 = "facedir", tiles = {"mcl_hoppers_hopper_inside.png^mcl_hoppers_hopper_top.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png"}, node_box = { diff --git a/mods/ITEMS/mcl_mobspawners/init.lua b/mods/ITEMS/mcl_mobspawners/init.lua index 1922a2211..99c266f9a 100644 --- a/mods/ITEMS/mcl_mobspawners/init.lua +++ b/mods/ITEMS/mcl_mobspawners/init.lua @@ -238,7 +238,6 @@ minetest.register_node("mcl_mobspawners:spawner", { tiles = {"mob_spawner.png"}, drawtype = "glasslike", paramtype = "light", - sunlight_propagates = true, walkable = true, description = S("Mob Spawner"), _doc_items_longdesc = S("A mob spawner regularily causes mobs to appear around it while a player is nearby. Some mob spawners are disabled while in light."), diff --git a/mods/ITEMS/mcl_nether/init.lua b/mods/ITEMS/mcl_nether/init.lua index 337b53a43..b0bb771a1 100644 --- a/mods/ITEMS/mcl_nether/init.lua +++ b/mods/ITEMS/mcl_nether/init.lua @@ -14,7 +14,6 @@ minetest.register_node("mcl_nether:glowstone", { } }, paramtype = "light", - sunlight_propagates = true, -- Real light level: 15 (but Minetest caps at 14) light_source = 14, sounds = mcl_sounds.node_sound_glass_defaults(), diff --git a/mods/ITEMS/mcl_stairs/api.lua b/mods/ITEMS/mcl_stairs/api.lua index 9218a1c5d..8dc65cc41 100644 --- a/mods/ITEMS/mcl_stairs/api.lua +++ b/mods/ITEMS/mcl_stairs/api.lua @@ -104,7 +104,6 @@ function mcl_stairs.register_stair(subname, recipeitem, groups, images, descript tiles = images, paramtype = "light", paramtype2 = "facedir", - sunlight_propagates = false, is_ground_content = false, groups = groups, sounds = sounds, @@ -200,7 +199,6 @@ function mcl_stairs.register_slab(subname, recipeitem, groups, images, descripti tiles = images, paramtype = "light", -- Facedir intentionally left out (see below) - sunlight_propagates = false, is_ground_content = false, groups = groups, sounds = sounds, diff --git a/mods/ITEMS/mcstair/init.lua b/mods/ITEMS/mcstair/init.lua index f0411980c..c4528000b 100644 --- a/mods/ITEMS/mcstair/init.lua +++ b/mods/ITEMS/mcstair/init.lua @@ -609,7 +609,6 @@ function mcstair.add(name, stairtiles) paramtype = "light", paramtype2 = "facedir", is_ground_content = false, - sunlight_propagates = false, groups = outer_groups, sounds = node_def.sounds, node_box = { @@ -632,7 +631,6 @@ function mcstair.add(name, stairtiles) paramtype = "light", paramtype2 = "facedir", is_ground_content = false, - sunlight_propagates = false, groups = inner_groups, sounds = node_def.sounds, node_box = {