mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-20 06:49:50 +08:00
Format code [skip actions]
This commit is contained in:
@@ -41,15 +41,14 @@ import emu.grasscutter.server.event.player.PlayerTeleportEvent;
|
||||
import emu.grasscutter.server.packet.send.*;
|
||||
import emu.grasscutter.utils.objects.KahnsSort;
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.val;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.annotation.Nullable;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.val;
|
||||
|
||||
public final class Scene {
|
||||
@Getter private final World world;
|
||||
@@ -248,11 +247,14 @@ public final class Scene {
|
||||
}
|
||||
if (avatar == null) continue;
|
||||
}
|
||||
player.getTeamManager().getActiveTeam().add(
|
||||
EntityCreationEvent.call(EntityAvatar.class,
|
||||
new Class<?>[] {Scene.class, Avatar.class},
|
||||
new Object[] {player.getScene(), avatar})
|
||||
);
|
||||
player
|
||||
.getTeamManager()
|
||||
.getActiveTeam()
|
||||
.add(
|
||||
EntityCreationEvent.call(
|
||||
EntityAvatar.class,
|
||||
new Class<?>[] {Scene.class, Avatar.class},
|
||||
new Object[] {player.getScene(), avatar}));
|
||||
}
|
||||
|
||||
// Limit character index in case its out of bounds
|
||||
|
||||
Reference in New Issue
Block a user