mirror of
https://github.com/APercy/automobiles_pck
synced 2025-06-15 21:38:02 +02:00
fix destroy method
This commit is contained in:
parent
81e0d3085d
commit
0d49ac7dcc
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user