mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-25 15:35:11 +01:00
Fixed Telekinesis performance (finally)
This commit is contained in:
parent
420a7ea322
commit
316c16030d
@ -59,8 +59,6 @@ public class Telekinesis extends EcoEnchant {
|
||||
.addItems(drops)
|
||||
.forceTelekinesis()
|
||||
.push();
|
||||
|
||||
player.updateInventory();
|
||||
}
|
||||
|
||||
// For exp drops, blockdropitemevent doesn't cover xp
|
||||
|
@ -33,7 +33,8 @@ public class FastCollatedDropQueue extends InternalDropQueue {
|
||||
|
||||
@Override
|
||||
public void push() {
|
||||
CollatedDrops collatedDrops = COLLATED_MAP.containsKey(player) ? COLLATED_MAP.get(player).addDrops(items).setLocation(loc) : new CollatedDrops(items, loc, xp);
|
||||
CollatedDrops fetched = COLLATED_MAP.get(player);
|
||||
CollatedDrops collatedDrops = fetched == null ? new CollatedDrops(items, loc, xp) : fetched.addDrops(items).setLocation(loc);
|
||||
COLLATED_MAP.put(player, collatedDrops);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user