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
|
@Override
|
||||||
public AbstractTabCompleter getTab() {
|
public AbstractTabCompleter getTab() {
|
||||||
return new TabCompleterEnchantinfo(this.getPlugin());
|
return new TabCompleterEnchantinfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -64,10 +64,17 @@ public class Spearfishing extends EcoEnchant {
|
|||||||
Collections.shuffle(potentialDrops, new Random(NumberUtils.randInt(0, 100000)));
|
Collections.shuffle(potentialDrops, new Random(NumberUtils.randInt(0, 100000)));
|
||||||
ItemStack drop = new ItemStack(potentialDrops.get(0), 1);
|
ItemStack drop = new ItemStack(potentialDrops.get(0), 1);
|
||||||
|
|
||||||
new DropQueue(player)
|
if (EnchantChecks.item(item, EcoEnchants.TELEKINESIS)) {
|
||||||
.addItem(drop)
|
new DropQueue(player)
|
||||||
.setItem(item)
|
.addItem(drop)
|
||||||
.setLocation(trident.getLocation())
|
.setLocation(trident.getLocation())
|
||||||
.push();
|
.forceTelekinesis()
|
||||||
|
.push();
|
||||||
|
} else {
|
||||||
|
new DropQueue(player)
|
||||||
|
.addItem(drop)
|
||||||
|
.setLocation(trident.getLocation())
|
||||||
|
.push();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -80,18 +80,6 @@ public class DropQueue {
|
|||||||
return this;
|
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
|
* Push the queue
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user