mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-23 18:45:39 +01:00
Ooops
This commit is contained in:
parent
a91c4a4ee1
commit
d0f1dce859
@ -77,7 +77,7 @@ public class EntityUtils {
|
|||||||
public int getSimilarStacksInChunk(LivingEntity entity) {
|
public int getSimilarStacksInChunk(LivingEntity entity) {
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (LivingEntity e : getNearbyEntities(entity.getLocation(), -1, true)) {
|
for (LivingEntity e : getNearbyEntities(entity.getLocation(), -1, true)) {
|
||||||
if (plugin.getEntityStackManager().isStacked(e))
|
if (entity.getType() == e.getType() && plugin.getEntityStackManager().isStacked(e))
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
return count;
|
return count;
|
||||||
|
Loading…
Reference in New Issue
Block a user