mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +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
@@ -191,14 +191,14 @@ public class EntityMagicMissile extends ThrowableEntity {
|
||||
|
||||
double range = 12;
|
||||
AxisAlignedBB bounds = new AxisAlignedBB(getPosX() - range, getPosY() - range, getPosZ() - range, getPosX() + range, getPosY() + range, getPosZ() + range);
|
||||
List entities;
|
||||
List<Entity> entities;
|
||||
if (isEvil()) {
|
||||
entities = world.getEntitiesWithinAABB(PlayerEntity.class, bounds);
|
||||
} else {
|
||||
entities = world.getEntitiesWithinAABB(Entity.class, bounds, Predicates.instanceOf(IMob.class));
|
||||
}
|
||||
while (entities.size() > 0) {
|
||||
Entity e = (Entity) entities.get(world.rand.nextInt(entities.size()));
|
||||
Entity e = entities.get(world.rand.nextInt(entities.size()));
|
||||
if (!(e instanceof LivingEntity) || !e.isAlive()) { // Just in case...
|
||||
entities.remove(e);
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user