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

Redundant code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • 1.20.4
    • Yes

      Hi, I was looking at CraftBukkit patches and found some redundant code

      BlockSapling.treeType = (this == Blocks.BROWN_MUSHROOM) ? TreeType.BROWN_MUSHROOM : TreeType.BROWN_MUSHROOM; // CraftBukkit

      It could simply be

      BlockSapling.treeType = TreeType.BROWN_MUSHROOM; // CraftBukkit

      https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/nms-patches/net/minecraft/world/level/block/BlockMushroom.patch#27

            Unassigned Unassigned
            uRyanxDee Ryan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: