13
0
geforkt von Mirrors/Paper

SPIGOT-7050: Enchantment data of items will not be saved correctly when saved in YAML configuration file

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2022-06-10 09:45:10 +10:00
Ursprung 79086ef520
Commit 70106be465

Datei anzeigen

@ -108,59 +108,59 @@ public class CraftEnchantment extends Enchantment {
case 11:
return "SOUL_SPEED";
case 12:
return "DAMAGE_ALL";
case 13:
return "DAMAGE_UNDEAD";
case 14:
return "DAMAGE_ARTHROPODS";
case 15:
return "KNOCKBACK";
case 16:
return "FIRE_ASPECT";
case 17:
return "LOOT_BONUS_MOBS";
case 18:
return "SWEEPING_EDGE";
case 19:
return "DIG_SPEED";
case 20:
return "SILK_TOUCH";
case 21:
return "DURABILITY";
case 22:
return "LOOT_BONUS_BLOCKS";
case 23:
return "ARROW_DAMAGE";
case 24:
return "ARROW_KNOCKBACK";
case 25:
return "ARROW_FIRE";
case 26:
return "ARROW_INFINITE";
case 27:
return "LUCK";
case 28:
return "LURE";
case 29:
return "LOYALTY";
case 30:
return "IMPALING";
case 31:
return "RIPTIDE";
case 32:
return "CHANNELING";
case 33:
return "MULTISHOT";
case 34:
return "QUICK_CHARGE";
case 35:
return "PIERCING";
case 36:
return "MENDING";
case 37:
return "VANISHING_CURSE";
case 38:
return "SWIFT_SNEAK";
case 13:
return "DAMAGE_ALL";
case 14:
return "DAMAGE_UNDEAD";
case 15:
return "DAMAGE_ARTHROPODS";
case 16:
return "KNOCKBACK";
case 17:
return "FIRE_ASPECT";
case 18:
return "LOOT_BONUS_MOBS";
case 19:
return "SWEEPING_EDGE";
case 20:
return "DIG_SPEED";
case 21:
return "SILK_TOUCH";
case 22:
return "DURABILITY";
case 23:
return "LOOT_BONUS_BLOCKS";
case 24:
return "ARROW_DAMAGE";
case 25:
return "ARROW_KNOCKBACK";
case 26:
return "ARROW_FIRE";
case 27:
return "ARROW_INFINITE";
case 28:
return "LUCK";
case 29:
return "LURE";
case 30:
return "LOYALTY";
case 31:
return "IMPALING";
case 32:
return "RIPTIDE";
case 33:
return "CHANNELING";
case 34:
return "MULTISHOT";
case 35:
return "QUICK_CHARGE";
case 36:
return "PIERCING";
case 37:
return "MENDING";
case 38:
return "VANISHING_CURSE";
default:
return "UNKNOWN_ENCHANT_" + IRegistry.ENCHANTMENT.getId(target);
}