Fix crash in default/item_entity.lua

This commit is contained in:
ANAND 2020-04-24 01:31:41 +05:30
parent 6b33820447
commit e6f053f2cf
No known key found for this signature in database
GPG key ID: 3AD8A3C4A51AAB97

View file

@ -15,8 +15,8 @@ local item = {
burn_up = function(self)
-- disappear in a smoke puff
self.object:remove()
local p = self.object:get_pos()
self.object:remove()
minetest.sound_play("default_item_smoke", {
pos = p,
max_hear_distance = 8,