From 92591b37dc378f7b161c8432a346179baa05a10f Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 5 Aug 2020 20:36:44 +0200 Subject: [PATCH] Make throwable potion entities non-pointable --- mods/ITEMS/mcl_potions/lingering.lua | 3 ++- mods/ITEMS/mcl_potions/splash.lua | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_potions/lingering.lua b/mods/ITEMS/mcl_potions/lingering.lua index 0cba055d29..f6c0bd4748 100644 --- a/mods/ITEMS/mcl_potions/lingering.lua +++ b/mods/ITEMS/mcl_potions/lingering.lua @@ -126,7 +126,8 @@ function mcl_potions.register_lingering(name, descr, color, def) textures = {lingering_image(color)}, hp_max = 1, visual_size = {x=w/2,y=w/2}, - collisionbox = {0,0,0,0,0,0}, + collisionbox = {-0.1,-0.1,-0.1,0.1,0.1,0.1}, + pointable = false, on_step = function(self, dtime) local pos = self.object:get_pos() local node = minetest.get_node(pos) diff --git a/mods/ITEMS/mcl_potions/splash.lua b/mods/ITEMS/mcl_potions/splash.lua index 1dc87b1981..75ab6d6edb 100644 --- a/mods/ITEMS/mcl_potions/splash.lua +++ b/mods/ITEMS/mcl_potions/splash.lua @@ -55,7 +55,8 @@ function mcl_potions.register_splash(name, descr, color, def) textures = {splash_image(color)}, hp_max = 1, visual_size = {x=w/2,y=w/2}, - collisionbox = {0,0,0,0,0,0}, + collisionbox = {-0.1,-0.1,-0.1,0.1,0.1,0.1}, + pointable = false, on_step = function(self, dtime) local pos = self.object:get_pos() local node = minetest.get_node(pos)