fix stuff
This commit is contained in:
parent
aae644def1
commit
b1800486f3
2 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ public final class EntityLib {
|
|||
}
|
||||
}
|
||||
|
||||
public static <W, T> EntityLibAPI<W, T> getApi() {
|
||||
public static <T> EntityLibAPI<T> getApi() {
|
||||
return api;
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue