fixed crash if a node, wich used tile_images instead of tiles, is hit with exploding ball

This commit is contained in:
adrido 2014-12-07 11:20:19 +01:00
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,})