forked from Upstream/mmocore
bug fix:
Fixed selecting a subclass would act like selecting a new class
This commit is contained in:
parent
26350cb4ca
commit
d78904ec47
@ -30,21 +30,21 @@ public class SubclassConfirmation extends EditableInventory {
|
|||||||
public Placeholders getPlaceholders(PluginInventory inv, int n) {
|
public Placeholders getPlaceholders(PluginInventory inv, int n) {
|
||||||
|
|
||||||
Placeholders holders = new Placeholders();
|
Placeholders holders = new Placeholders();
|
||||||
holders.register("class", ((ClassConfirmationInventory) inv).profess.getName());
|
holders.register("class", ((SubclassConfirmationInventory) inv).profess.getName());
|
||||||
return holders;
|
return holders;
|
||||||
}
|
}
|
||||||
} : new NoPlaceholderItem(config);
|
} : new NoPlaceholderItem(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GeneratedInventory newInventory(PlayerData data, PlayerClass profess, PluginInventory last) {
|
public GeneratedInventory newInventory(PlayerData data, PlayerClass profess, PluginInventory last) {
|
||||||
return new ClassConfirmationInventory(data, this, profess, last);
|
return new SubclassConfirmationInventory(data, this, profess, last);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ClassConfirmationInventory extends GeneratedInventory {
|
public class SubclassConfirmationInventory extends GeneratedInventory {
|
||||||
private final PlayerClass profess;
|
private final PlayerClass profess;
|
||||||
private final PluginInventory last;
|
private final PluginInventory last;
|
||||||
|
|
||||||
public ClassConfirmationInventory(PlayerData playerData, EditableInventory editable, PlayerClass profess, PluginInventory last) {
|
public SubclassConfirmationInventory(PlayerData playerData, EditableInventory editable, PlayerClass profess, PluginInventory last) {
|
||||||
super(playerData, editable);
|
super(playerData, editable);
|
||||||
|
|
||||||
this.profess = profess;
|
this.profess = profess;
|
||||||
|
@ -122,7 +122,7 @@ public class SubclassSelect extends EditableInventory {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
InventoryManager.CLASS_CONFIRM.newInventory(playerData, MMOCore.plugin.classManager.get(tag), this).open();
|
InventoryManager.SUBCLASS_CONFIRM.newInventory(playerData, MMOCore.plugin.classManager.get(tag), this).open();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user