mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Item Entity: Add message to moveresult assertion (#9797)
This commit is contained in:
parent
6c607e2082
commit
2d7e000cfe
1 changed files with 3 additions and 1 deletions
|
@ -200,7 +200,9 @@ core.register_entity(":__builtin:item", {
|
||||||
return -- Don't do anything
|
return -- Don't do anything
|
||||||
end
|
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
|
if not moveresult.collides then
|
||||||
-- future TODO: items should probably decelerate in air
|
-- future TODO: items should probably decelerate in air
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue