UnsoughtMC / unsoughtmc

1 stars 0 forks source link

Enchanted Melon (slices) are counted as normal ones upon /sell or /sellall #10

Open UnsoughtMC opened 1 month ago

UnsoughtMC commented 1 month ago

else if index of event-slot is 13:
            set {_melon} to 0
            set {_melon} to amount of melon slice in player's inventory

            if {_melon} > 0:
                remove {_melon} of melon slice from player
                play sound "block.note_block.pling" at volume 1 at pitch 2 to player
                send "{@prefix} &aYou sold %{_melon}%x Melon Slices for %{@priceMelon}*{_melon}%$." to player
                add {@priceMelon}*{_melon} to player's balance
            else:
                send "{@prefix} &cYou do not have Melon Slices to sell."

Same issue as with pumpkins this is the code affected.