Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-3852

Setting vine direction removes all states.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • Windows 10
      Spigot 1.12.2 (Latest)

      Setting a block to a vine and attempting to set its directional value is not functioning properly. The resulting vine block has no directional state. Vine blocks placed by hand do have directional states. This is problematic because vine orientation cannot be modified by the API currently.

      This was functioning properly in previous versions. The last version I can remember was spigot 1.10.

      Sample code.

      Block b = faceLocations[z][y].getBlock();
      b.setType(Material.VINE);
      if(b.getState().getData() instanceof Vine){
      	Vine v = (Vine) b.getState().getData();
      	v.putOnFace(BlockFace.WEST);
      	b.setData(v.getData());
      	b.getState().update(true);
      }
      

      Attachments posted below.

        1. API_Error1.png
          API_Error1.png
          164 kB
        2. API_Error2.png
          API_Error2.png
          253 kB
        3. API_Error3.png
          API_Error3.png
          195 kB
        4. HandPlacedVine.png
          HandPlacedVine.png
          531 kB

            Unassigned Unassigned
            TheKraken7 Daniel Scalzi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: