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

World.generateTree() causes ClassCastException with huge mushrooms


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • Windows 10 version 10.0.17763.557

      Java version "10.0.1" 2018-04-17
      Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
      Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

    • This server is running CraftBukkit version git-Spigot-d05d3c1-fca4157 (MC: 1.14.3) (Implementing API version 1.14.3-R0.1-SNAPSHOT)
    • Yes

      The API method generateTree in class World will generate a ClassCastException when the target TreeType is RED_MUSHROOM or BROWN_MUSHROOM.

      To use the test plugin, left click a block to generate a red mushroom and right click a block to generate a brown mushroom. The clicked block must have enough room around it for a huge mushroom to grow on top of it.

      This bug has been tested on both Spigot and CraftBukkit on all Minecraft versions between 1.13.2 and 1.14.3. The bug appears in both Spigot and CraftBukkit for Minecraft 1.14.1 and is present in all future versions.

      Time spent: 35 minutes.

            Unassigned Unassigned
            NESlover Michael Dinkel
            0 Vote for this issue
            2 Start watching this issue