mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-12 07:16:54 +01:00
#7086 on 0.5.1
- Fix in-portal trains sometimes loading in with invalid coordinates, causing a game crash
This commit is contained in:
parent
ed875d47ac
commit
b7f272cad7
1 changed files with 2 additions and 0 deletions
|
@ -791,6 +791,8 @@ public class Carriage {
|
|||
}
|
||||
|
||||
private void createEntity(Level level, boolean loadPassengers) {
|
||||
if (positionAnchor != null)
|
||||
serialisedEntity.put("Pos", VecHelper.writeNBT(positionAnchor));
|
||||
Entity entity = EntityType.create(serialisedEntity, level)
|
||||
.orElse(null);
|
||||
|
||||
|
|
Loading…
Reference in a new issue