Fixed potential duplication glitch with telekinesis

This commit is contained in:
Auxilor 2022-02-11 14:06:57 +00:00
parent de322bb536
commit 486937c5a6

View File

@ -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;
}