mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-08 20:01:45 +01:00
Fix error on some Spigot forks
This commit is contained in:
parent
e1818a5a24
commit
4e21d317f3
@ -9,7 +9,6 @@ import me.filoghost.fcommons.logging.Log;
|
|||||||
import me.filoghost.holographicdisplays.nms.common.EntityID;
|
import me.filoghost.holographicdisplays.nms.common.EntityID;
|
||||||
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||||
import net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy;
|
import net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy;
|
||||||
import org.bukkit.craftbukkit.libs.it.unimi.dsi.fastutil.ints.IntList;
|
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
|
||||||
@ -38,7 +37,7 @@ class PacketHelper {
|
|||||||
private static boolean useEntityListDestroyPacket() {
|
private static boolean useEntityListDestroyPacket() {
|
||||||
try {
|
try {
|
||||||
for (Field field : PacketPlayOutEntityDestroy.class.getDeclaredFields()) {
|
for (Field field : PacketPlayOutEntityDestroy.class.getDeclaredFields()) {
|
||||||
if (field.getType() == IntList.class) {
|
if (field.getType().getSimpleName().equals("IntList")) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user