Skip to content

Commit 2d7e000

Browse files
authoredMay 14, 2020
Item Entity: Add message to moveresult assertion (#9797)
1 parent 6c607e2 commit 2d7e000

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

Diff for: ‎builtin/game/item_entity.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ core.register_entity(":__builtin:item", {
200200
return -- Don't do anything
201201
end
202202

203-
assert(moveresult)
203+
assert(moveresult,
204+
"Collision info missing, this is caused by an out-of-date/buggy mod or game")
205+
204206
if not moveresult.collides then
205207
-- future TODO: items should probably decelerate in air
206208
return

0 commit comments

Comments
 (0)
Please sign in to comment.