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

Cactus and sugar cane: base blocks do not reset their age when growing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None

      When sugar cane and cactus blocks trigger growth and spawn a new block on top of them, the base block's age is not propery reset to 0.

      This is because of two lines of code that were probably disabled by accident:

      BlockCactus.java line 37:
      // world.setTypeAndData(blockposition, iblockdata1, 4); // CraftBukkit ​

      BlockReed.java line 34:
      // world.setTypeAndData(blockposition, iblockdata.set(BlockReed.AGE, Integer.valueOf(0)), 4);​

      I've already confirmed that re-enabling those two lines fix the isssue.

      Fother discussion can be found here:
      http://www.spigotmc.org/threads/cactus-and-sugar-cane-growing-very-fast-in-cerain-worlds.37400/

            Thinkofdeath Thinkofname
            NeoTiger Markus Pfefferle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: