summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-06-11 08:39:26 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-06-11 08:39:26 +0100
commit23ffc0d0da463ec75de50a1e2b16da2075d4b2b7 (patch)
tree52a100645973d20656336f310eed5edbebc9de25
parent7b106ab859808ab7a5f718ddb2bc28cce07c4770 (diff)
updated rat do_custom example
-rw-r--r--rat.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/rat.lua b/rat.lua
index a468524..11e4bd8 100644
--- a/rat.lua
+++ b/rat.lua
@@ -41,6 +41,8 @@ mobs:register_mob("mobs_animal:rat", {
local pos = self.object:getpos()
print("rat pos", pos.x, pos.y, pos.z, dtime)
+
+ return false -- return but skip doing rest of API
end,
]]
--[[