0
0
Fork 0

Make throwable potion entities non-pointable

This commit is contained in:
Wuzzy 2020-08-05 20:36:44 +02:00
parent f5032503d0
commit 92591b37dc
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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)