Doors Deprecate

Discussion in 'Plugin Development' started by Jonathan Danek, Jul 28, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Jonathan Danek

    Hey sorry but I cant find anything on this. How do I store a door object and set it as open, It use to be like:
    Code:java
    1. Door d = event.getClickedBlock();
    2. d.setOpen(true);


    But the door object is deprecated how would i go about doing this?
     
  2. Offline

    etaxi341

    Jonathan Danek Ignore the "deprecated" ... but It works if you update the state. I think its something like that:
    Code:java
    1. d.updateState();
     
  3. Offline

    Jonathan Danek

    Alright ill give it a try and get back to you! Thanks!
     
Thread Status:
Not open for further replies.

Share This Page