Removed unused method from DropQueue

This commit is contained in:
Auxilor 2020-12-23 00:04:46 +00:00
parent 04a509f04f
commit 195a1e1fff
3 changed files with 13 additions and 18 deletions

View File

@ -26,7 +26,7 @@ public class CommandEnchantinfo extends AbstractCommand {
@Override
public AbstractTabCompleter getTab() {
return new TabCompleterEnchantinfo(this.getPlugin());
return new TabCompleterEnchantinfo();
}
@Override

View File

@ -64,10 +64,17 @@ public class Spearfishing extends EcoEnchant {
Collections.shuffle(potentialDrops, new Random(NumberUtils.randInt(0, 100000)));
ItemStack drop = new ItemStack(potentialDrops.get(0), 1);
new DropQueue(player)
.addItem(drop)
.setItem(item)
.setLocation(trident.getLocation())
.push();
if (EnchantChecks.item(item, EcoEnchants.TELEKINESIS)) {
new DropQueue(player)
.addItem(drop)
.setLocation(trident.getLocation())
.forceTelekinesis()
.push();
} else {
new DropQueue(player)
.addItem(drop)
.setLocation(trident.getLocation())
.push();
}
}
}

View File

@ -80,18 +80,6 @@ public class DropQueue {
return this;
}
/**
* Set the queue to test specific item for telekinesis
* Default item is the player's held item, however for this is required for Tridents.
*
* @param item The item to test
* @return The DropQueue
*/
public DropQueue setItem(ItemStack item) {
handle.setItem(item);
return this;
}
/**
* Push the queue
*/