This commit is contained in:
Brianna 2019-08-07 14:47:30 -04:00
parent a91c4a4ee1
commit d0f1dce859

View File

@ -77,7 +77,7 @@ public class EntityUtils {
public int getSimilarStacksInChunk(LivingEntity entity) {
int count = 0;
for (LivingEntity e : getNearbyEntities(entity.getLocation(), -1, true)) {
if (plugin.getEntityStackManager().isStacked(e))
if (entity.getType() == e.getType() && plugin.getEntityStackManager().isStacked(e))
count++;
}
return count;