mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-25 15:35:11 +01:00
Removed unused method from DropQueue
This commit is contained in:
parent
04a509f04f
commit
195a1e1fff
@ -26,7 +26,7 @@ public class CommandEnchantinfo extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public AbstractTabCompleter getTab() {
|
||||
return new TabCompleterEnchantinfo(this.getPlugin());
|
||||
return new TabCompleterEnchantinfo();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user