@Override
public ItemStack[] getContents() {
ItemStack[] C = new ItemStack[getSize()];
System.arraycopy(items, 0, C, 0, items.length);
System.arraycopy(items, 0, C, items.length, armor.length);
return C;
}
Should it not look like:
System.arraycopy(armor, 0, C, items.length, armor.length);
Hey i have found a bug :S
```
@Override
public ItemStack[] getContents() {
ItemStack[] C = new ItemStack[getSize()];
System.arraycopy(items, 0, C, 0, items.length);
System.arraycopy(items, 0, C, items.length, armor.length);
return C;
}
```
Should it not look like:
System.arraycopy(armor, 0, C, items.length, armor.length);
Interesting, seems like I missed this two years ago! But interestingly nobody has complained about it...
If you got some time, you can go ahead and send a pull request. Otherwise I'll fix that up later when I have time.
Interesting, seems like I missed this two years ago! But interestingly nobody has complained about it...
If you got some time, you can go ahead and send a pull request. Otherwise I'll fix that up later when I have time.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Hey i have found a bug :S
Should it not look like:
System.arraycopy(armor, 0, C, items.length, armor.length);
Interesting, seems like I missed this two years ago! But interestingly nobody has complained about it...
If you got some time, you can go ahead and send a pull request. Otherwise I'll fix that up later when I have time.