Skip to content

Commit

Permalink
Item Entity: Add message to moveresult assertion (#9797)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy authored May 14, 2020
1 parent 6c607e2 commit 2d7e000
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builtin/game/item_entity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d7e000

Please sign in to comment.