From d7f176dfd836373f162b888c79634817cef15ca7 Mon Sep 17 00:00:00 2001
From: Auke Kok <sofar@foo-projects.org>
Date: Fri, 2 Dec 2016 23:05:01 -0800
Subject: [PATCH] Torches: Make selection boxes consistent

This makes all the 3d torch selection boxes 1px oversized. Before,
they were inconsistently sized and too small for the upright torch.
---
 mods/default/torch.lua | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mods/default/torch.lua b/mods/default/torch.lua
index 0d3454b..e94c5bd 100644
--- a/mods/default/torch.lua
+++ b/mods/default/torch.lua
@@ -55,7 +55,7 @@ minetest.register_node("default:torch", {
 	drop = "default:torch",
 	selection_box = {
 		type = "wallmounted",
-		wall_bottom = {-1/16, -0.5, -1/16, 1/16, 2/16, 1/16},
+		wall_bottom = {-1/8, -1/2, -1/8, 1/8, 2/16, 1/8},
 	},
 	sounds = default.node_sound_wood_defaults(),
 	on_place = function(itemstack, placer, pointed_thing)
@@ -102,7 +102,7 @@ minetest.register_node("default:torch_wall", {
 	drop = "default:torch",
 	selection_box = {
 		type = "wallmounted",
-		wall_side = {-0.5, -0.3, -0.1, -0.2, 0.3, 0.1},
+		wall_side = {-1/2, -1/2, -1/8, -1/8, 1/8, 1/8},
 	},
 	sounds = default.node_sound_wood_defaults(),
 })
@@ -123,7 +123,7 @@ minetest.register_node("default:torch_ceiling", {
 	drop = "default:torch",
 	selection_box = {
 		type = "wallmounted",
-		wall_top = {-0.1, -0.1, -0.25, 0.1, 0.5, 0.1},
+		wall_top = {-1/8, -1/16, -5/16, 1/8, 1/2, 1/8},
 	},
 	sounds = default.node_sound_wood_defaults(),
 })