Fix error on some Spigot forks

This commit is contained in:
filoghost 2021-12-10 17:28:42 +01:00
parent e1818a5a24
commit 4e21d317f3

View File

@ -9,7 +9,6 @@ import me.filoghost.fcommons.logging.Log;
import me.filoghost.holographicdisplays.nms.common.EntityID;
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
import net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy;
import org.bukkit.craftbukkit.libs.it.unimi.dsi.fastutil.ints.IntList;
import java.lang.reflect.Field;
@ -38,7 +37,7 @@ class PacketHelper {
private static boolean useEntityListDestroyPacket() {
try {
for (Field field : PacketPlayOutEntityDestroy.class.getDeclaredFields()) {
if (field.getType() == IntList.class) {
if (field.getType().getSimpleName().equals("IntList")) {
return true;
}
}