Skip to content

Commit

Permalink
hotfix new citizen spawn (ldtteam#10341)
Browse files Browse the repository at this point in the history
hotfix new citizen spawn
  • Loading branch information
someaddons authored Oct 18, 2024
1 parent 9008b6d commit ea9b5c3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,11 @@ private ICitizenData spawnCitizenOnPosition(

entity.setUUID(citizenData.getUUID());
entity.setPos(spawnPoint.getX() + HALF_BLOCK, spawnPoint.getY() + SLIGHTLY_UP, spawnPoint.getZ() + HALF_BLOCK);
world.addFreshEntity(entity);

entity.setCitizenId(citizenData.getId());
entity.getCitizenColonyHandler().setColonyId(colony.getID());

world.addFreshEntity(entity);
if (entity.isAddedToWorld())
{
entity.getCitizenColonyHandler().registerWithColony(citizenData.getColony().getID(), citizenData.getId());
Expand Down

0 comments on commit ea9b5c3

Please sign in to comment.