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

Snow.setLayers doesn't seem to actually work in 1.13

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • As vanilla as I can get, nothing in plugins except the one I am porting to 1.13

    • This server is running CraftBukkit version git-Spigot-0b44fa0-49a2604 (MC: 1.13) (Implementing API version 1.13-R0.1-SNAPSHOT)

      It doesn't seem to matter what I give setLayers, the resulting Snow will always be 1 level high

      block = chunk.getBlock(x, y + 1, z);
      block.setType(Material.Snow);
      BlockData data = block.getBlockData();
      if (data instanceof Snow) {
      Snow snow = (Snow)data;
      snow.setLayers(4);
      }

      (note: thanks again for all the work on 1.13. I am slowly porting my plugins to support it. With that in mind, it is entirely possible that I am doing something wrong. I looked around for an update function but couldn't find it – BlockState had one for example)

            Unassigned Unassigned
            daddychurchill Eddie Churchill
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: