Advertisement
kman2010

Untitled

May 17th, 2011
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. private class StopGodMode {
  2. private ItemStack p;
  3. public StopGodMode(ItemStack p) {
  4. this.p = p;
  5. }
  6. public void run() {
  7. if (p == null) {
  8. this.cancel();
  9. return;
  10. }
  11. else if (p.getDurability() <= 1) {
  12. p = null;
  13. this.cancel();
  14. return;
  15. }
  16. p.setDurability((short) (p.getDurability() - 1));
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement