1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Durable Class not working in New update

Discussion in 'Development' started by iCirgio, Feb 11, 2018.

  1. iCirgio

    iCirgio Slime

    Messages:
    92
    GitHub:
    lolnova
    Before this code use to work
    PHP:
    pickaxew Item::get(Item::DIAMOND_PICKAXE);

    if(
    $pickaxew instanceof Durable){
                 
    $pickaxew->setUnbreakable();
           }
    Now it doesn't any help is welcomed
     
  2. Daniktheboss

    Daniktheboss Baby Zombie

    Messages:
    144
    GitHub:
    daniktheboss
    Question, why are you checking if the pickaxe is durable?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.