move entity spawning to the server loop to fix C2ME crash

move checkplayers to Data from FileData
This commit is contained in:
Oth3r 2024-08-17 13:27:26 -05:00
commit 757ee9668a
5 changed files with 56 additions and 26 deletions

View file

@ -298,10 +298,7 @@ public class Utl {
* spawns the entity and make the player sit on it
*/
public static void spawnSit(ServerPlayerEntity player, DisplayEntity.TextDisplayEntity entity) {
player.getServerWorld().spawnEntity(entity);
player.startRiding(entity);
// add the entity to the list
FileData.addSitEntity(player, entity);
Data.setSpawnList(player, entity);
}
/**