Wither Has Wrong Effect Id

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None

      The correct wither spawn sound ID is: 1023

      // CraftBukkit start - Use relative location for far away sounds
      // this.world.a(1023, new BlockPosition(this), 0);
      .
      .
      .
      if (distanceSquared > viewDistance * viewDistance)

      { double deltaLength = Math.sqrt(distanceSquared); double relativeX = player.locX + (deltaX / deltaLength) * viewDistance; double relativeZ = player.locZ + (deltaZ / deltaLength) * viewDistance; player.playerConnection.sendPacket(new PacketPlayOutWorldEvent(1013, new BlockPosition((int) relativeX, (int) this.locY, (int) relativeZ), 0, true)); }

      else

      { player.playerConnection.sendPacket(new PacketPlayOutWorldEvent(1013, new BlockPosition((int) this.locX, (int) this.locY, (int) this.locZ), 0, true)); }

      .
      .
      .
      // CraftBukkit end

            Assignee:
            Unassigned
            Reporter:
            md_5
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: