forked from virt-mirrors/Sit
fixed sit while seated causing sit entities to not be removed for the player
This commit is contained in:
parent
4db3062a62
commit
2e1ae46d77
2 changed files with 22 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue