mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Item Entity: prevent moveresult assert when attached (#13353)
This commit is contained in:
@@ -178,6 +178,11 @@ core.register_entity(":__builtin:item", {
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Prevent assert when item_entity is attached
|
||||||
|
if moveresult == nil and self.object:get_attach() then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
if self.force_out then
|
if self.force_out then
|
||||||
-- This code runs after the entity got a push from the is_stuck code.
|
-- This code runs after the entity got a push from the is_stuck code.
|
||||||
-- It makes sure the entity is entirely outside the solid node
|
-- It makes sure the entity is entirely outside the solid node
|
||||||
|
Reference in New Issue
Block a user