fixed sit while seated causing sit entities to not be removed for the player

This commit is contained in:
Oth3r 2024-08-26 14:38:21 -05:00
commit 2e1ae46d77
2 changed files with 22 additions and 8 deletions

View file

@ -51,16 +51,10 @@ public class LoopManager {
}
}
// spawn entities for everyone in the spawn list
HashMap<ServerPlayerEntity, DisplayEntity.TextDisplayEntity> spawnList = Data.getSpawnList();
for (ServerPlayerEntity player : spawnList.keySet()) {
DisplayEntity.TextDisplayEntity sitEntity = spawnList.get(player);
player.getServerWorld().spawnEntity(sitEntity);
player.startRiding(sitEntity);
// add the entity to the list
FileData.addSitEntity(player, sitEntity);
// remove the entity from the list
Data.removeSpawnList(player);
Logic.spawnEntity(player);
}
}
}