h31ix

Untitled

Mar 29th, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public ItemStack splitStack(int i, int j) {
  2. if (this.a[i] != null) {
  3. ItemStack itemstack;
  4.  
  5. if (this.a[i].count <= j) {
  6. itemstack = this.a[i];
  7. this.a[i] = null;
  8. return itemstack;
  9. } else {
  10. itemstack = this.a[i].a(j);
  11. if (this.a[i].count == 0) {
  12. this.a[i] = null;
  13. }
  14.  
  15. return itemstack;
  16. }
  17. } else {
  18. return null;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment