mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-18 19:39:37 +00:00
Use Collections.addAll
This commit is contained in:
1 parent
57930991ec
commit
c6783e573c
12 files changed
+30
-57
No files matched your search
@@ -12,6 +12,7 @@ import net.minecraftforge.common.BiomeDictionary;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class ExtraBeeMutation implements IBeeMutation {
|
||||
@@ -270,9 +271,7 @@ public class ExtraBeeMutation implements IBeeMutation {
|
||||
public Collection<String> getSpecialConditions() {
|
||||
final List<String> conditions = new ArrayList<>();
|
||||
if (this.req != null) {
|
||||
for (final String s : this.req.tooltip()) {
|
||||
conditions.add(s);
|
||||
}
|
||||
Collections.addAll(conditions, this.req.tooltip());
|
||||
}
|
||||
return conditions;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user