Fix crash caused by missing eat node

master
BlockMen 2015-11-16 17:33:35 +01:00
parent 231d0cd0d7
commit a3bf9627a4
4 changed files with 7 additions and 4 deletions

View File

@ -2,7 +2,7 @@ Mod/Modpack Creatures
=====================
Copyright (c) 2015 BlockMen <blockmen2015@gmail.com>
Version: 2.2
Version: 2.2.1
A Mod(pack) for Minetest that provides a MOB-Engine and adds several creatures to the game.

View File

@ -14,3 +14,6 @@ Version 2.2
- Added descriptions to spawners
- Added option to set custom panic and swim animations
Version 2.2.1
-------------
- Fixed crash caused by not existing node

View File

@ -2,7 +2,7 @@ Creatures MOB-Engine
====================
Copyright (c) 2015 BlockMen <blockmen2015@gmail.com>
Version: 2.0 Beta
Version: 2.0.1
This mod provides an engine, that handles the base function for MOB in Minetest.
@ -12,7 +12,7 @@ performance and functionality.
See API.txt for more informations on how to use this engine for mobs.
License:
License:
~~~~~~~~
Code:
(c) Copyright 2015 BlockMen; modified zlib-License

View File

@ -481,7 +481,7 @@ creatures.on_step = function(self, dtime)
if name == self.last_node.name then
eat_node = current_pos
break
elseif name == sn.name then
elseif sn and sn.name == name then
eat_node = p
break
end