forked from virt-mirrors/Sit
move entity spawning to the server loop to fix C2ME crash
move checkplayers to Data from FileData
This commit is contained in:
parent
9eeb379dd9
commit
757ee9668a
5 changed files with 56 additions and 26 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue