mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 19:59:36 +00:00
Fix all (non-deprecation) compiler warnings (#3321)
* Fix all (non-deprecation) compiler warnings * satisfy spotless * use a method ref over a lambda
This commit is contained in:
1 parent
a01f3fed15
commit
cbc36366de
30 files changed
+55
-40
No files matched your search
@@ -510,7 +510,7 @@ public class EntityDoppleganger extends MobEntity implements IEntityAdditionalSp
|
||||
|
||||
private static int countGaiaGuardiansAround(World world, BlockPos source) {
|
||||
float range = 15F;
|
||||
List l = world.getEntitiesWithinAABB(EntityDoppleganger.class, new AxisAlignedBB(source.getX() + 0.5 - range, source.getY() + 0.5 - range, source.getZ() + 0.5 - range, source.getX() + 0.5 + range, source.getY() + 0.5 + range, source.getZ() + 0.5 + range));
|
||||
List<EntityDoppleganger> l = world.getEntitiesWithinAABB(EntityDoppleganger.class, new AxisAlignedBB(source.getX() + 0.5 - range, source.getY() + 0.5 - range, source.getZ() + 0.5 - range, source.getX() + 0.5 + range, source.getY() + 0.5 + range, source.getZ() + 0.5 + range));
|
||||
return l.size();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user