[FIX] Fix self.nametag position

This commit is contained in:
Rui 2016-09-17 17:50:15 +09:00
parent a1ad98fc4e
commit 27f313906e
1 changed files with 1 additions and 1 deletions

View File

@ -264,9 +264,9 @@ function maidroid.register_maidroid(product_name, def)
if staticdata == "" then
self.product_name = product_name
self.manufacturing_number = maidroid.manufacturing_data[product_name]
self.nametag = self.inventory_name
maidroid.manufacturing_data[product_name] = maidroid.manufacturing_data[product_name] + 1
create_inventory(self)
self.nametag = self.inventory_name
else
-- if static data is not empty string, this object has beed already created.
local data = minetest.deserialize(staticdata)