Item Entity: Add message to moveresult assertion (#9797)

This commit is contained in:
rubenwardy 2020-05-14 16:54:17 +01:00 committed by Nils Dagsson Moskopp
parent 2f24ef6909
commit ba458341b2
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 3 additions and 1 deletions

View File

@ -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