Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Item Entity: Add message to moveresult assertion (#9797)
- Loading branch information
Showing
with
3 additions
and
1 deletion.
-
+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 |
|
|