Placing wall torches in 1.13 not possible anymore???

Discussion in 'Spigot Plugin Development' started by Jeppa, Aug 2, 2018.

  1. Hi,

    I'm trying to place torches on blocks in 1.13 but they are all facing north... (wall torches)
    Changing the material using :

    BlockState state = XYZBlock.getState();
    state.setType(Material.WALL_TORCH) ;
    state.update(true) ;

    is working !


    But f.e. :

    BlockState state = XYZBlock.getState();
    ((Torch) state.getData()).setFacingDirection(BlockFace.EAST);
    state.update(true) ;

    is not working anymore...

    Did i miss anything?

    i tryied using LEGECY_TORCH ... but this does't work ,either...
     
    • Agree Agree x 1
  2. Thanks for the answer!

    I already tried it using BlockData, casting it to org.bukkit.block.data.Directional and calling setFacing(BlockFace.EAST) ...
    With no result :(
    It keeps facing north.

    And BlockData has no update function.. should it update the block just by using setFacing(...) ?
     
  3. Ouch.... Yes, of course ;)