From 3db4b2ab3eea30fe3f7b5de4dc2b124f4ce7c759 Mon Sep 17 00:00:00 2001 From: Melledy <121644117+Melledy@users.noreply.github.com> Date: Mon, 16 Sep 2024 01:04:03 -0700 Subject: [PATCH] Update `PacketSceneGroupRefreshScNotify` --- .../packet/send/PacketSceneGroupRefreshScNotify.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneGroupRefreshScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneGroupRefreshScNotify.java index dec93212e..a4756b2e9 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneGroupRefreshScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneGroupRefreshScNotify.java @@ -15,8 +15,8 @@ public class PacketSceneGroupRefreshScNotify extends BasePacket { public PacketSceneGroupRefreshScNotify(GameEntity toAdd, GameEntity toRemove) { super(CmdId.SceneGroupRefreshScNotify); - var group = SceneGroupRefreshInfo.newInstance(); - group.setGroupRefreshType(SceneGroupRefreshType.SCENE_GROUP_REFRESH_TYPE_LOADED); + var group = SceneGroupRefreshInfo.newInstance() + .setGroupRefreshType(SceneGroupRefreshType.SCENE_GROUP_REFRESH_TYPE_LOADED); if (toAdd != null) { group.setGroupId(toAdd.getGroupId()); @@ -35,7 +35,8 @@ public PacketSceneGroupRefreshScNotify(GameEntity toAdd, GameEntity toRemove) { public PacketSceneGroupRefreshScNotify(Collection toAdd, Collection toRemove) { super(CmdId.SceneGroupRefreshScNotify); - var group = SceneGroupRefreshInfo.newInstance(); + var group = SceneGroupRefreshInfo.newInstance() + .setGroupRefreshType(SceneGroupRefreshType.SCENE_GROUP_REFRESH_TYPE_LOADED); if (toAdd != null) { for (var entity : toAdd) {