mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-20 02:45:52 +01:00
Refactor some commands and move inventory/team limits to the config
This commit is contained in:
@@ -107,7 +107,7 @@ public class EntityAvatar extends GenshinEntity {
|
||||
|
||||
public SceneAvatarInfo getSceneAvatarInfo() {
|
||||
SceneAvatarInfo.Builder avatarInfo = SceneAvatarInfo.newBuilder()
|
||||
.setPlayerId(this.getPlayer().getId())
|
||||
.setPlayerId(this.getPlayer().getUid())
|
||||
.setAvatarId(this.getAvatar().getAvatarId())
|
||||
.setGuid(this.getAvatar().getGuid())
|
||||
.setPeerId(this.getPlayer().getPeerId())
|
||||
|
||||
@@ -36,7 +36,7 @@ public class EntityItem extends EntityGadget {
|
||||
this.id = getScene().getWorld().getNextEntityId(EntityIdType.GADGET);
|
||||
this.pos = new Position(pos);
|
||||
this.rot = new Position();
|
||||
this.guid = player.getNextGuid();
|
||||
this.guid = player.getNextGenshinGuid();
|
||||
this.item = new GenshinItem(itemData, count);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user