Null check for isStacked.

This commit is contained in:
Brianna 2019-06-28 16:01:24 -04:00
parent 0efcd158f8
commit 98193e5f9a

View File

@ -54,6 +54,7 @@ public class EntityStackManager {
}
public boolean isStacked(Entity entity) {
if (entity == null) return false;
boolean isStacked = isStacked(entity.getUniqueId());
if (!isStacked && addSerializedStack(entity) != null) {
return true;