Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 14:00:11 +01:00
SPIGOT-1677: Fix attributes with only single underscore.
Dieser Commit ist enthalten in:
Ursprung
92439bb231
Commit
4d3af9c19b
@ -29,8 +29,10 @@ public class CraftAttributeMap implements Attributable {
|
|||||||
StringBuilder sb = new StringBuilder(bukkit.toLowerCase());
|
StringBuilder sb = new StringBuilder(bukkit.toLowerCase());
|
||||||
|
|
||||||
sb.setCharAt(first, '.');
|
sb.setCharAt(first, '.');
|
||||||
|
if (second != -1) {
|
||||||
sb.deleteCharAt(second);
|
sb.deleteCharAt(second);
|
||||||
sb.setCharAt(second, bukkit.charAt(second + 1));
|
sb.setCharAt(second, bukkit.charAt(second + 1));
|
||||||
|
}
|
||||||
|
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren