1
0
mirror of https://github.com/tacigar/maidroid.git synced 2025-01-26 15:30:19 +01:00

fix maidroid/api.lua

This commit is contained in:
tacigar 2016-12-08 21:42:51 +09:00
parent 55486406f0
commit 28531f624b
2 changed files with 5 additions and 1 deletions

View File

@ -227,7 +227,7 @@ end)
if maidroid.is_maidroid(luaentity.name) then if maidroid.is_maidroid(luaentity.name) then
local stack = luaentity:get_wield_item_stack() local stack = luaentity:get_wield_item_stack()
if stack:get_name() ~= itemname then if stack:get_name() ~= self.itemname then
if stack:is_empty() then if stack:is_empty() then
self.itemname = "air" self.itemname = "air"
self.object:set_properties{textures=self.itemname} self.object:set_properties{textures=self.itemname}

View File

@ -0,0 +1,4 @@
------------------------------------------------------------
-- Copyright (c) 2016 tacigar. All rights reserved.
-- https://github.com/tacigar/maidroid
------------------------------------------------------------