Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ItemStack splitStack(int i, int j) {
- if (this.a[i] != null) {
- ItemStack itemstack;
- if (this.a[i].count <= j) {
- itemstack = this.a[i];
- this.a[i] = null;
- return itemstack;
- } else {
- itemstack = this.a[i].a(j);
- if (this.a[i].count == 0) {
- this.a[i] = null;
- }
- return itemstack;
- }
- } else {
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment