Fix crash caused by missing eat node
This commit is contained in:
parent
231d0cd0d7
commit
a3bf9627a4
@ -2,7 +2,7 @@ Mod/Modpack Creatures
|
|||||||
=====================
|
=====================
|
||||||
Copyright (c) 2015 BlockMen <blockmen2015@gmail.com>
|
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.
|
A Mod(pack) for Minetest that provides a MOB-Engine and adds several creatures to the game.
|
||||||
|
@ -14,3 +14,6 @@ Version 2.2
|
|||||||
- Added descriptions to spawners
|
- Added descriptions to spawners
|
||||||
- Added option to set custom panic and swim animations
|
- Added option to set custom panic and swim animations
|
||||||
|
|
||||||
|
Version 2.2.1
|
||||||
|
-------------
|
||||||
|
- Fixed crash caused by not existing node
|
||||||
|
@ -2,7 +2,7 @@ Creatures MOB-Engine
|
|||||||
====================
|
====================
|
||||||
Copyright (c) 2015 BlockMen <blockmen2015@gmail.com>
|
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.
|
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.
|
See API.txt for more informations on how to use this engine for mobs.
|
||||||
|
|
||||||
|
|
||||||
License:
|
License:
|
||||||
~~~~~~~~
|
~~~~~~~~
|
||||||
Code:
|
Code:
|
||||||
(c) Copyright 2015 BlockMen; modified zlib-License
|
(c) Copyright 2015 BlockMen; modified zlib-License
|
||||||
|
@ -481,7 +481,7 @@ creatures.on_step = function(self, dtime)
|
|||||||
if name == self.last_node.name then
|
if name == self.last_node.name then
|
||||||
eat_node = current_pos
|
eat_node = current_pos
|
||||||
break
|
break
|
||||||
elseif name == sn.name then
|
elseif sn and sn.name == name then
|
||||||
eat_node = p
|
eat_node = p
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user