Skip to content
Permalink
Browse files

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

  • Loading branch information
rubenwardy committed May 14, 2020
1 parent 6c607e2 commit 2d7e000cfe578340a126d7101ac98c0de29b66b6
Showing with 3 additions and 1 deletion.
  1. +3 −1 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

0 comments on commit 2d7e000

Please sign in to comment.
You can’t perform that action at this time.