forked from MineClone5/MineClone5
Delete drippingwater entities when block unloads
This commit is contained in:
parent
2892c45f52
commit
c8f9c3e923
|
@ -19,6 +19,7 @@ minetest.register_entity("drippingwater:drop_water", {
|
||||||
textures = {water_tex, water_tex, water_tex, water_tex, water_tex, water_tex},
|
textures = {water_tex, water_tex, water_tex, water_tex, water_tex, water_tex},
|
||||||
spritediv = {x=1, y=1},
|
spritediv = {x=1, y=1},
|
||||||
initial_sprite_basepos = {x=0, y=0},
|
initial_sprite_basepos = {x=0, y=0},
|
||||||
|
static_save = false,
|
||||||
|
|
||||||
on_activate = function(self, staticdata)
|
on_activate = function(self, staticdata)
|
||||||
self.object:set_sprite({x=0,y=0}, 1, 1, true)
|
self.object:set_sprite({x=0,y=0}, 1, 1, true)
|
||||||
|
@ -59,6 +60,7 @@ minetest.register_entity("drippingwater:drop_lava", {
|
||||||
textures = {lava_tex, lava_tex, lava_tex, lava_tex, lava_tex, lava_tex},
|
textures = {lava_tex, lava_tex, lava_tex, lava_tex, lava_tex, lava_tex},
|
||||||
spritediv = {x=1, y=1},
|
spritediv = {x=1, y=1},
|
||||||
initial_sprite_basepos = {x=0, y=0},
|
initial_sprite_basepos = {x=0, y=0},
|
||||||
|
static_save = false,
|
||||||
|
|
||||||
on_activate = function(self, staticdata)
|
on_activate = function(self, staticdata)
|
||||||
self.object:set_sprite({x=0,y=0}, 1, 0, true)
|
self.object:set_sprite({x=0,y=0}, 1, 0, true)
|
||||||
|
|
Loading…
Reference in New Issue