Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private class StopGodMode {
- private ItemStack p;
- public StopGodMode(ItemStack p) {
- this.p = p;
- }
- public void run() {
- if (p == null) {
- this.cancel();
- return;
- }
- else if (p.getDurability() <= 1) {
- p = null;
- this.cancel();
- return;
- }
- p.setDurability((short) (p.getDurability() - 1));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement