fix stuff

This commit is contained in:
Tofaa 2024-02-17 19:04:32 +04:00
parent aae644def1
commit b1800486f3
2 changed files with 3 additions and 3 deletions

View file

@ -30,7 +30,7 @@ public final class EntityLib {
}
}
public static <W, T> EntityLibAPI<W, T> getApi() {
public static <T> EntityLibAPI<T> getApi() {
return api;
}

View file

@ -45,7 +45,7 @@ public class Metadata {
entries[index] = data;
this.entryMap = null;
final WrapperEntity entity = EntityLib.getApi().findEntity(entityId);
final WrapperEntity entity = EntityLib.getApi().getEntity(entityId);
if (entity == null || entity.isSpawned()) return; // Not EntityLib entity then, the user must send the packet manually. OR not spawned.
if (!this.notifyChanges) {
synchronized (this.notNotifiedChanges) {
@ -64,7 +64,7 @@ public class Metadata {
if (!notifyChanges) {
return; // cache;
}
final WrapperEntity entity = EntityLib.getApi().findEntity(entityId);
final WrapperEntity entity = EntityLib.getApi().getEntity(entityId);
if (entity == null || entity.isSpawned()) return;
Map<Byte, EntityData> entries;
synchronized (this.notNotifiedChanges) {