fix destroy method

This commit is contained in:
Alexsandro Percy 2024-06-07 17:39:23 -03:00
parent 81e0d3085d
commit 0d49ac7dcc
3 changed files with 3 additions and 3 deletions

View File

@ -528,7 +528,7 @@ function automobiles_lib.destroy(self, puncher)
local lua_ent = self.object:get_luaentity()
local staticdata = lua_ent:get_staticdata(self)
local obj_name = lua_ent.name
local player = minetest.get_player_by_name(self.owner)
local player = puncher
local stack = ItemStack(obj_name)
local stack_meta = stack:get_meta()

View File

@ -45,7 +45,7 @@ function motorcycle.destroy(self, puncher)
local lua_ent = self.object:get_luaentity()
local staticdata = lua_ent:get_staticdata(self)
local obj_name = lua_ent.name
local player = minetest.get_player_by_name(self.owner)
local player = puncher
local stack = ItemStack(obj_name)
local stack_meta = stack:get_meta()

View File

@ -45,7 +45,7 @@ function vespa.destroy(self, puncher)
local lua_ent = self.object:get_luaentity()
local staticdata = lua_ent:get_staticdata(self)
local obj_name = lua_ent.name
local player = minetest.get_player_by_name(self.owner)
local player = puncher
local stack = ItemStack(obj_name)
local stack_meta = stack:get_meta()