mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 06:53:24 +00:00
Merge pull request #2129 from HenryLoenwind/fix
Micro-Fix: Useless null check
This commit is contained in:
commit
172c7a1342
1 file changed
+1
-1
@@ -60,7 +60,7 @@ public class MagnetController implements IEntitySelector {
|
||||
|
||||
List<Entity> interestingItems = player.worldObj.selectEntitiesWithinAABB(EntityItem.class, aabb, this);
|
||||
List<Entity> xp = player.worldObj.selectEntitiesWithinAABB(EntityXPOrb.class, aabb, this);
|
||||
if(xp != null) {
|
||||
if(!xp.isEmpty()) {
|
||||
interestingItems.addAll(xp);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user