mirror of
https://bitbucket.org/kingarthursteam/cannons.git
synced 2024-12-02 19:53:48 +01:00
fixed crash if a node, wich used tile_images instead of tiles, is hit with exploding ball
This commit is contained in:
parent
31c458a156
commit
eaa6651d73
@ -29,7 +29,7 @@ local exploding={
|
|||||||
self.object:remove()
|
self.object:remove()
|
||||||
end,
|
end,
|
||||||
on_node_hit = function(self,pos,node)
|
on_node_hit = function(self,pos,node)
|
||||||
cannons.nodehitparticles(pos,minetest.registered_nodes[node.name].tiles[1])
|
cannons.nodehitparticles(pos,node)
|
||||||
cannons.destroy({x=pos.x, y=pos.y, z=pos.z},self.range)
|
cannons.destroy({x=pos.x, y=pos.y, z=pos.z},self.range)
|
||||||
minetest.sound_play("cannons_shot",
|
minetest.sound_play("cannons_shot",
|
||||||
{pos = pos, gain = 1.0, max_hear_distance = 32,})
|
{pos = pos, gain = 1.0, max_hear_distance = 32,})
|
||||||
|
Loading…
Reference in New Issue
Block a user