mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-19 10:24:47 +01:00
Fix issue with a player not being able to spawn when they join somone in co-op with a singleplayer team of more than the max allowed amount
This commit is contained in:
@@ -158,7 +158,7 @@ public class TeamManager {
|
||||
}
|
||||
|
||||
public boolean isSpawned() {
|
||||
return getPlayer().getWorld() != null && getPlayer().getScene().getEntities().containsKey(getCurrentAvatarEntity().getId());
|
||||
return getPlayer().getScene() != null && getPlayer().getScene().getEntities().containsKey(getCurrentAvatarEntity().getId());
|
||||
}
|
||||
|
||||
public int getMaxTeamSize() {
|
||||
@@ -256,7 +256,7 @@ public class TeamManager {
|
||||
updateTeamResonances();
|
||||
|
||||
// Packets
|
||||
getPlayer().getScene().broadcastPacket(new PacketSceneTeamUpdateNotify(getPlayer()));
|
||||
getPlayer().getWorld().broadcastPacket(new PacketSceneTeamUpdateNotify(getPlayer()));
|
||||
|
||||
// Run callback
|
||||
if (responsePacket != null) {
|
||||
|
||||
Reference in New Issue
Block a user