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