h31ix

Untitled

Jul 3rd, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. ItemStack[] contents = getInventory().getContents();
  2. for (int i=2; i<contents.length; i++) {
  3. ItemStack stack = contents[i];
  4. if (stack != null) {
  5. getWorld().dropItemNaturally(getLocation(), contents[i]);
  6. getInventory().remove(contents[i]);
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment