From 34f707d28376d190a942efa6e0abab09d64b9c70 Mon Sep 17 00:00:00 2001 From: Calinou Date: Thu, 1 May 2014 17:43:01 +0200 Subject: Make glass and obsidian glass framed to suit More Blocks glasses; some code cleanups. --- redefinitions.lua | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/redefinitions.lua b/redefinitions.lua index f3aec3d..1978ceb 100644 --- a/redefinitions.lua +++ b/redefinitions.lua @@ -70,8 +70,7 @@ minetest.register_craft({ -- Redefinitions of some default nodes --- Don't bother overriding nodes if minetest.override_item isn't available -if minetest.override_item then +if minetest.override_item then -- Don't bother overriding nodes if minetest.override_item isn't available if moreblocks.config.wood_facedir then minetest.override_item("default:wood", { @@ -79,6 +78,16 @@ if moreblocks.config.wood_facedir then }) end +-- Make glass and obsidian glass framed, like the More Blocks glasses + +minetest.override_item("default:glass", { + drawtype = "glasslike_framed", +}) + +minetest.override_item("default:obsidian_glass", { + drawtype = "glasslike_framed", +}) + -- Let there be light! minetest.override_item("default:ladder", { @@ -117,8 +126,7 @@ minetest.override_item("default:junglesapling", { }) minetest.override_item("default:grass_1", { - -- Use a bigger inventory image - inventory_image = "default_grass_3.png", + inventory_image = "default_grass_3.png", -- Use a bigger inventory image wield_image = "default_grass_3.png", paramtype = "light", sunlight_propagates = true, -- cgit v1.2.3