aboutsummaryrefslogtreecommitdiff
path: root/builtin/game/item_entity.lua
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-05-14 16:54:17 +0100
committerGitHub <noreply@github.com>2020-05-14 17:54:17 +0200
commit2d7e000cfe578340a126d7101ac98c0de29b66b6 (patch)
tree86494dda973c1d2399ced7bc52e218bd1a1e36c4 /builtin/game/item_entity.lua
parent6c607e20828f97f950038dfb86891a74afb6f755 (diff)
downloadminetest-2d7e000cfe578340a126d7101ac98c0de29b66b6.tar.gz
minetest-2d7e000cfe578340a126d7101ac98c0de29b66b6.tar.bz2
minetest-2d7e000cfe578340a126d7101ac98c0de29b66b6.zip
Item Entity: Add message to moveresult assertion (#9797)
Diffstat (limited to 'builtin/game/item_entity.lua')
-rw-r--r--builtin/game/item_entity.lua4
1 files changed, 3 insertions, 1 deletions
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