mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Fixed potential duplication glitch with telekinesis
This commit is contained in:
parent
de322bb536
commit
486937c5a6
@ -29,6 +29,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
public class Telekinesis extends EcoEnchant {
|
||||
private static boolean always = false;
|
||||
@ -166,6 +167,10 @@ public class Telekinesis extends EcoEnchant {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Objects.equals(player, entity)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!EnchantChecks.item(item, this)) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user