mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-12 13:24:36 +01:00
Update PacketSceneGroupRefreshScNotify
This commit is contained in:
@@ -15,8 +15,8 @@ public class PacketSceneGroupRefreshScNotify extends BasePacket {
|
|||||||
public PacketSceneGroupRefreshScNotify(GameEntity toAdd, GameEntity toRemove) {
|
public PacketSceneGroupRefreshScNotify(GameEntity toAdd, GameEntity toRemove) {
|
||||||
super(CmdId.SceneGroupRefreshScNotify);
|
super(CmdId.SceneGroupRefreshScNotify);
|
||||||
|
|
||||||
var group = SceneGroupRefreshInfo.newInstance();
|
var group = SceneGroupRefreshInfo.newInstance()
|
||||||
group.setGroupRefreshType(SceneGroupRefreshType.SCENE_GROUP_REFRESH_TYPE_LOADED);
|
.setGroupRefreshType(SceneGroupRefreshType.SCENE_GROUP_REFRESH_TYPE_LOADED);
|
||||||
|
|
||||||
if (toAdd != null) {
|
if (toAdd != null) {
|
||||||
group.setGroupId(toAdd.getGroupId());
|
group.setGroupId(toAdd.getGroupId());
|
||||||
@@ -35,7 +35,8 @@ public class PacketSceneGroupRefreshScNotify extends BasePacket {
|
|||||||
public PacketSceneGroupRefreshScNotify(Collection<? extends GameEntity> toAdd, Collection<? extends GameEntity> toRemove) {
|
public PacketSceneGroupRefreshScNotify(Collection<? extends GameEntity> toAdd, Collection<? extends GameEntity> toRemove) {
|
||||||
super(CmdId.SceneGroupRefreshScNotify);
|
super(CmdId.SceneGroupRefreshScNotify);
|
||||||
|
|
||||||
var group = SceneGroupRefreshInfo.newInstance();
|
var group = SceneGroupRefreshInfo.newInstance()
|
||||||
|
.setGroupRefreshType(SceneGroupRefreshType.SCENE_GROUP_REFRESH_TYPE_LOADED);
|
||||||
|
|
||||||
if (toAdd != null) {
|
if (toAdd != null) {
|
||||||
for (var entity : toAdd) {
|
for (var entity : toAdd) {
|
||||||
|
|||||||
Reference in New Issue
Block a user