From 2d7e000cfe578340a126d7101ac98c0de29b66b6 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 14 May 2020 16:54:17 +0100 Subject: Item Entity: Add message to moveresult assertion (#9797) --- builtin/game/item_entity.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'builtin') 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 -- cgit v1.2.3