From 28531f624b1a541f89424e3ab7a0700de387d618 Mon Sep 17 00:00:00 2001 From: tacigar Date: Thu, 8 Dec 2016 21:42:51 +0900 Subject: [PATCH] fix maidroid/api.lua --- maidroid/api.lua | 2 +- maidroid_core/cores/farming.lua | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 maidroid_core/cores/farming.lua diff --git a/maidroid/api.lua b/maidroid/api.lua index b187dc4..7e25514 100644 --- a/maidroid/api.lua +++ b/maidroid/api.lua @@ -227,7 +227,7 @@ end) if maidroid.is_maidroid(luaentity.name) then 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 self.itemname = "air" self.object:set_properties{textures=self.itemname} diff --git a/maidroid_core/cores/farming.lua b/maidroid_core/cores/farming.lua new file mode 100644 index 0000000..8c08b66 --- /dev/null +++ b/maidroid_core/cores/farming.lua @@ -0,0 +1,4 @@ +------------------------------------------------------------ +-- Copyright (c) 2016 tacigar. All rights reserved. +-- https://github.com/tacigar/maidroid +------------------------------------------------------------ \ No newline at end of file