Fix some weirdo error in skript with entity destroy, closes #718

This commit is contained in:
libraryaddict 2023-06-26 14:45:53 +12:00
parent 2683887444
commit f0c28d45a7
2 changed files with 5 additions and 1 deletions

View File

@ -39,6 +39,11 @@ public class PacketListenerEntityDestroy extends PacketAdapter {
List<Integer> entityIds = event.getPacket().getIntLists().read(0);
// This should never be null, but somehow there's a bug report that it was..
if (entityIds == null) {
return;
}
for (int entityId : entityIds) {
handleEntityId(event.getPlayer(), entityId);
}

View File

@ -1,7 +1,6 @@
package me.libraryaddict.disguise.utilities.reflection;
public class FakeBoundingBox {
private final double xMod;
private final double yMod;
private final double zMod;