From 3c0a653d1dcf5ba69548ed698ab61a70eba4d5a1 Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Sun, 10 Jun 2018 16:54:02 +0300 Subject: adjust paint thickness to avoid visual glitches --- technic/tools/spray_painter.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/technic/tools/spray_painter.lua b/technic/tools/spray_painter.lua index cea42b4..5988687 100644 --- a/technic/tools/spray_painter.lua +++ b/technic/tools/spray_painter.lua @@ -28,9 +28,9 @@ minetest.register_node ("technic:paint_layer", { tiles = {"technic_paint.png"}, node_box = { type = "wallmounted", - wall_bottom = {-0.5, -0.5, -0.5, 0.5, -0.499, 0.5}, - wall_top = {-0.5, 0.499, -0.5, 0.5, 0.5, 0.5}, - wall_side = {-0.5, -0.5, -0.5, -0.499, 0.5, 0.5}, + wall_bottom = {-0.5, -0.5, -0.5, 0.5, -0.49, 0.5}, + wall_top = {-0.5, 0.49, -0.5, 0.5, 0.5, 0.5}, + wall_side = {-0.5, -0.5, -0.5, -0.49, 0.5, 0.5}, }, drop = "", groups = {attached_node = 1, dig_immediate = 2, not_in_creative_inventory = 1}, -- cgit v1.2.3 From ef1400052d4b466c9a53826681321b8ec598d96f Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Sun, 10 Jun 2018 23:29:05 +0300 Subject: dirty fix --- technic/textures/technic_paint.png | Bin 182 -> 174 bytes technic/tools/spray_painter.lua | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/technic/textures/technic_paint.png b/technic/textures/technic_paint.png index b052757..4210991 100644 Binary files a/technic/textures/technic_paint.png and b/technic/textures/technic_paint.png differ diff --git a/technic/tools/spray_painter.lua b/technic/tools/spray_painter.lua index 5988687..06d83ee 100644 --- a/technic/tools/spray_painter.lua +++ b/technic/tools/spray_painter.lua @@ -92,7 +92,7 @@ local function spray_paint(itemstack, user, pointed_thing) -- player needs to own both the wall and its surface if minetest.is_protected(pointed_thing.under, user:get_player_name()) or minetest.is_protected(pointed_thing.above, user:get_player_name()) then - minetest.record_protection_violation(pointed_thing.under, name) +-- minetest.record_protection_violation(pointed_thing.under, name) return itemstack end -- cgit v1.2.3 From 7029fecfbb33b9a2c786ce783605ddf26ad30536 Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Sun, 10 Jun 2018 23:36:38 +0300 Subject: proper fix --- technic/tools/spray_painter.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/technic/tools/spray_painter.lua b/technic/tools/spray_painter.lua index 06d83ee..41b8a6a 100644 --- a/technic/tools/spray_painter.lua +++ b/technic/tools/spray_painter.lua @@ -90,9 +90,10 @@ local function spray_paint(itemstack, user, pointed_thing) }) -- player needs to own both the wall and its surface - if minetest.is_protected(pointed_thing.under, user:get_player_name()) or - minetest.is_protected(pointed_thing.above, user:get_player_name()) then --- minetest.record_protection_violation(pointed_thing.under, name) + local pname = user:get_player_name() + if minetest.is_protected(pointed_thing.under, pname) or + minetest.is_protected(pointed_thing.above, pname) then + minetest.record_protection_violation(pointed_thing.under, pname) return itemstack end -- cgit v1.2.3