From cdc3b823831b9be56a9d3687e175e6d091ddda1d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 24 Feb 2021 16:36:45 +0100 Subject: [PATCH] Fix flickering when placing glass pane --- mods/xpanes/init.lua | 10 +++++++++- mods/xpanes/textures/xpanes_space.png | Bin 68 -> 0 bytes 2 files changed, 9 insertions(+), 1 deletion(-) delete mode 100644 mods/xpanes/textures/xpanes_space.png diff --git a/mods/xpanes/init.lua b/mods/xpanes/init.lua index feac5b6..f77de44 100644 --- a/mods/xpanes/init.lua +++ b/mods/xpanes/init.lua @@ -90,7 +90,15 @@ end minetest.register_node("xpanes:pane", { description = "Glass Pane", - tiles = {"xpanes_space.png"}, + drawtype = "nodebox", + tiles = {"xpanes_white.png", "xpanes_white.png", "xpanes_pane.png"}, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.06, 0.5, 0.5, 0.06}, + }, + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,drop_on_dig=1}, use_texture_alpha = "clip", inventory_image = "xpanes_pane.png", wield_image = "xpanes_pane.png", diff --git a/mods/xpanes/textures/xpanes_space.png b/mods/xpanes/textures/xpanes_space.png deleted file mode 100644 index 240ca4f8d4edca6d5905acf71bdd9f88d4bd3127..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 68 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kP61+gajamnSrtAhou#e O#o+1c=d#Wzp$Py;d<%g9