Skip to content

Loss of text encoding #349

Description

@seferlian
import net.minecraft.init.MobEffects
import net.minecraft.entity.player.EntityPlayer
import net.minecraft.item.ItemStack
import com.hbm.hazard.modifier.HazardModifier
import net.minecraft.util.text.TextFormatting
import net.minecraft.client.resources.I18n

mods.hbm.hazards.register("egg", {
    unstable(1.0, (living, stack, level) -> {
        if (living.isPotionActive(MobEffects.POISON)) {
            living.removePotionEffect(MobEffects.POISON)
            stack.setCount(stack.getCount() - 1)
        }
    }, (entityItem, level) -> { }, (EntityPlayer player, List list, double level, ItemStack stack, List<HazardModifier> modifiers) -> {
        list.add("§2§l[Удаляет отравление]")
    })
})

Problem with list.add("§2§l[Удаляет отравление]"), in minecraft this text turn in:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions