mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 08:56:04 +01:00
Bug fixes (#2314)
* Match resources names * Fix loading with no skill * Stop overriding common command alias * Fix discord link in version check popup * Forgot to add rotation fix * Remove unnecessary set
This commit is contained in:
@@ -157,6 +157,13 @@ public class AvatarStorage extends BasePlayerManager implements Iterable<Avatar>
|
||||
// Add to avatar storage
|
||||
this.avatars.put(avatar.getAvatarId(), avatar);
|
||||
this.avatarsGuid.put(avatar.getGuid(), avatar);
|
||||
|
||||
// Set main character skill depot data, fixes loading with no element every login
|
||||
if ((avatar.getAvatarId() == 10000007) || (avatar.getAvatarId() == 10000005)) {
|
||||
avatar.setSkillDepot(skillDepot);
|
||||
avatar.setSkillDepotData(skillDepot);
|
||||
avatar.save();
|
||||
}
|
||||
}
|
||||
|
||||
this.setLoaded(true);
|
||||
|
||||
@@ -41,7 +41,7 @@ public class HomeFurnitureItem {
|
||||
.furnitureId(homeFurniture.getId())
|
||||
.parentFurnitureIndex(1)
|
||||
.spawnPos(homeFurniture.getPos() == null ? new Position() : homeFurniture.getPos())
|
||||
.spawnRot(homeFurniture.getRot() == null ? new Position() : homeFurniture.getRot())
|
||||
.spawnRot(new Position())
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,10 @@ import java.util.stream.Stream;
|
||||
import lombok.Getter;
|
||||
|
||||
public enum ElementType implements IntValueEnum {
|
||||
None(0, FightProperty.FIGHT_PROP_CUR_FIRE_ENERGY, FightProperty.FIGHT_PROP_MAX_FIRE_ENERGY),
|
||||
None(
|
||||
0,
|
||||
FightProperty.FIGHT_PROP_CUR_WIND_ENERGY,
|
||||
FightProperty.FIGHT_PROP_MAX_WIND_ENERGY),
|
||||
Fire(
|
||||
1,
|
||||
FightProperty.FIGHT_PROP_CUR_FIRE_ENERGY,
|
||||
@@ -90,7 +93,7 @@ public enum ElementType implements IntValueEnum {
|
||||
@Getter private final int configHash;
|
||||
|
||||
ElementType(int value, FightProperty curEnergyProp, FightProperty maxEnergyProp) {
|
||||
this(value, curEnergyProp, maxEnergyProp, 0, null, 1);
|
||||
this(value, curEnergyProp, maxEnergyProp, 0, null, 0);
|
||||
}
|
||||
|
||||
ElementType(
|
||||
|
||||
Reference in New Issue
Block a user