-
Bug
-
Resolution: Invalid
-
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.