Fix wrong materials used for emblem generation

This commit is contained in:
Melledy
2025-12-13 16:11:51 -08:00
parent 4d14099f11
commit e5ffb1743a
5 changed files with 16 additions and 14 deletions
@@ -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()) {