mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-09 18:12:52 +08:00
fix: EntityTeam.java (NPE)
This commit is contained in:
parent
2309b1f469
commit
7dd63e9816
@ -17,6 +17,7 @@ public class EntityTeam extends GameEntity {
|
|||||||
public EntityTeam(Player player) {
|
public EntityTeam(Player player) {
|
||||||
super(player.getScene());
|
super(player.getScene());
|
||||||
initAbilities();
|
initAbilities();
|
||||||
|
this.player = player;
|
||||||
this.id = player.getWorld().getNextEntityId(EntityIdType.TEAM);
|
this.id = player.getWorld().getNextEntityId(EntityIdType.TEAM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user