Skip to content

Commit

Permalink
Hotfix corporation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPresso committed Jul 21, 2024
1 parent 16ca2b4 commit 3ed306b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<zuninjaversion>1.9.1</zuninjaversion>
<zuninjaversion>1.9.2</zuninjaversion>
<spring.version>3.2.4</spring.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ public Map<CorporationBonusType, Double> getCalculatedBonusValues() {
final var bonusValues = new HashMap<CorporationBonusType, Double>();

for(final var type : CorporationBonusType.values()) {
if(!corporationBonuses.containsKey(type))
if(this.corporationBonuses == null || !corporationBonuses.containsKey(type)) {
bonusValues.put(type, 0D);
continue;
}

final var bonus = corporationBonuses.get(type);

Expand Down
16 changes: 16 additions & 0 deletions src/main/java/me/alexpresso/zuninja/domain/nodes/user/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@ public class User extends BaseGraphObject {
private Set<InventoryItem> inventory = new HashSet<>();


public String getDiscordId() {
return discordId;
}
public User setDiscordId(String discordId) {
this.discordId = discordId;
return this;
}

public String getDiscordUserName() {
return discordUserName;
}
public User setDiscordUserName(String discordUserName) {
this.discordUserName = discordUserName;
return this;
}

public int getPosition() {
return position;
}
Expand Down

0 comments on commit 3ed306b

Please sign in to comment.