Skip to content

Commit

Permalink
Update PacketSceneGroupRefreshScNotify
Browse files Browse the repository at this point in the history
  • Loading branch information
Melledy committed Sep 16, 2024
1 parent d979b2d commit 3db4b2a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -35,7 +35,8 @@ public PacketSceneGroupRefreshScNotify(GameEntity toAdd, GameEntity toRemove) {
public PacketSceneGroupRefreshScNotify(Collection<? extends GameEntity> toAdd, Collection<? extends GameEntity> 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) {
Expand Down

0 comments on commit 3db4b2a

Please sign in to comment.