mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-01-15 20:11:21 +01:00
typo
This commit is contained in:
parent
5793e4f768
commit
b1c31534e0
@ -115,10 +115,10 @@ public class Methods {
|
||||
|
||||
public static List<Entity> getSimilarEntitesAroundEntity(Entity initalEntity) {
|
||||
|
||||
int searcRadius = SettingsManager.Settings.SEARCH_RADIUS.getInt();
|
||||
int searchRadius = SettingsManager.Settings.SEARCH_RADIUS.getInt();
|
||||
|
||||
//Create a list of all entities around the initial entity of the same type.
|
||||
List<Entity> entityList = initalEntity.getNearbyEntities(searcRadius, searcRadius, searcRadius).stream()
|
||||
List<Entity> entityList = initalEntity.getNearbyEntities(searchRadius, searchRadius, searchRadius).stream()
|
||||
.filter(entity -> entity.getType() == initalEntity.getType() && entity != initalEntity)
|
||||
.collect(Collectors.toList());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user