Moved todo to the right place
This commit is contained in:
parent
1c135be1ba
commit
d00b9b195a
|
|
@ -38,6 +38,7 @@ public class SellWindow extends GUI {
|
|||
|
||||
@Override
|
||||
protected void closed() {
|
||||
//TODO track item owner so only that player can sell them as a safety measure
|
||||
Optional<NamespacedKey> optionalNamespacedKey = getNamespacedKey();
|
||||
if (optionalNamespacedKey.isEmpty()) {
|
||||
player.getInventory().addItem(Arrays.stream(getInventory().getContents())
|
||||
|
|
|
|||
|
|
@ -97,7 +97,6 @@ public class UpgradeWindow extends GUI {
|
|||
}
|
||||
|
||||
private void upgrade(Player player, EnchantmentTrack enchantmentTrack, int trackLevel) {
|
||||
//TODO track item owner so only that player can sell them as a safety measure
|
||||
int playerPoints = PointsManagement.getInstance().getPoints(player.getUniqueId());
|
||||
Optional<EnchantmentData> optionalEnchantmentData = enchantmentTrack.nextEnchantment(trackLevel);
|
||||
if (optionalEnchantmentData.isEmpty()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user