aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ZonedChunkStorage.cpp
diff options
context:
space:
mode:
authorAyush Thoren <ayushthoren@gmail.com>2026-03-13 04:16:05 -0700
committerGitHub <noreply@github.com>2026-03-13 11:16:05 +0000
commitd131a551bff13b76d98dc708756daa1fd975e7ca (patch)
tree536443a04a20bf261d798f67fde43e398eba9482 /Minecraft.World/ZonedChunkStorage.cpp
parentad74d443001ff17c5ab10e4438952e2805e05f38 (diff)
Fix mounted minecarts not persisting across world reloads (#979)
* Fix mounted minecarts not persisting across world reloads Signed-off-by: Ayush Thoren <ayushthoren@gmail.com> * Apply patch --------- Signed-off-by: Ayush Thoren <ayushthoren@gmail.com>
Diffstat (limited to 'Minecraft.World/ZonedChunkStorage.cpp')
-rw-r--r--Minecraft.World/ZonedChunkStorage.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Minecraft.World/ZonedChunkStorage.cpp b/Minecraft.World/ZonedChunkStorage.cpp
index 19023242..75df6a0c 100644
--- a/Minecraft.World/ZonedChunkStorage.cpp
+++ b/Minecraft.World/ZonedChunkStorage.cpp
@@ -194,7 +194,11 @@ void ZonedChunkStorage::loadEntities(Level *level, LevelChunk *lc)
if (type == 0)
{
shared_ptr<Entity> e = EntityIO::loadStatic(tag, level);
- if (e != nullptr) lc->addEntity(e);
+ if (e != nullptr)
+ {
+ lc->addEntity(e);
+ lc->addRidingEntities(e, tag);
+ }
}
else if (type == 1)
{