mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Off by one
This commit is contained in:
parent
42081b38d4
commit
2c8ecdf1b5
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ public enum PonyWearable implements ITriggerPixelMapped<PonyWearable> {
|
|||
public static PonyWearable[] flags(boolean[] flags) {
|
||||
List<PonyWearable> wears = new ArrayList<PonyWearable>();
|
||||
PonyWearable[] values = values();
|
||||
for (int i = 1; i < values.length; i++) {
|
||||
for (int i = 0; i < values.length; i++) {
|
||||
if (flags[i]) wears.add(values[i]);
|
||||
}
|
||||
return wears.toArray(new PonyWearable[wears.size()]);
|
||||
|
|
Loading…
Reference in a new issue