mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-20 01:29:54 +02:00
Fix wrong materials used for emblem generation
This commit is contained in:
@@ -275,7 +275,8 @@ public class CharacterStorage extends PlayerManager {
|
||||
this.updateCharHandbook = false;
|
||||
this.getPlayer().addNextPackage(
|
||||
NetMsgId.handbook_change_notify,
|
||||
this.getPlayer().getCharacters().getCharacterHandbook());
|
||||
this.getCharacterHandbook()
|
||||
);
|
||||
}
|
||||
|
||||
// Check if we need to trigger disc achievements
|
||||
@@ -298,7 +299,8 @@ public class CharacterStorage extends PlayerManager {
|
||||
this.updateDiscHandbook = false;
|
||||
this.getPlayer().addNextPackage(
|
||||
NetMsgId.handbook_change_notify,
|
||||
this.getPlayer().getCharacters().getDiscHandbook());
|
||||
this.getDiscHandbook()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -675,7 +675,11 @@ public class GameCharacter implements GameDatabaseObject {
|
||||
|
||||
// Get gem data
|
||||
var gemData = this.getData().getCharGemData(slotId);
|
||||
var gemControl = gemData.getControlData();
|
||||
var gemControl = GameData.getCharGemSlotControlDataTable().get(slotId);
|
||||
|
||||
if (gemControl == null) {
|
||||
throw new ServerException(110105, "Emblem slot data doesn't exist");
|
||||
}
|
||||
|
||||
// Check character level
|
||||
if (this.getLevel() < gemControl.getUnlockLevel()) {
|
||||
@@ -717,7 +721,11 @@ public class GameCharacter implements GameDatabaseObject {
|
||||
|
||||
// Get gem data
|
||||
var gemData = this.getData().getCharGemData(slotId);
|
||||
var gemControl = gemData.getControlData();
|
||||
var gemControl = GameData.getCharGemSlotControlDataTable().get(slotId);
|
||||
|
||||
if (gemControl == null) {
|
||||
throw new ServerException(110105, "Emblem slot data doesn't exist");
|
||||
}
|
||||
|
||||
// Check character level
|
||||
if (this.getLevel() < gemControl.getUnlockLevel()) {
|
||||
|
||||
Reference in New Issue
Block a user