From: rubenwardy Date: Thu, 14 May 2020 15:54:17 +0000 (+0100) Subject: Item Entity: Add message to moveresult assertion (#9797) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2d7e000cfe578340a126d7101ac98c0de29b66b6;p=oweals%2Fminetest.git Item Entity: Add message to moveresult assertion (#9797) --- diff --git a/builtin/game/item_entity.lua b/builtin/game/item_entity.lua index a85eba977..5d2cd7c76 100644 --- a/builtin/game/item_entity.lua +++ b/builtin/game/item_entity.lua @@ -200,7 +200,9 @@ core.register_entity(":__builtin:item", { return -- Don't do anything end - assert(moveresult) + assert(moveresult, + "Collision info missing, this is caused by an out-of-date/buggy mod or game") + if not moveresult.collides then -- future TODO: items should probably decelerate in air return