mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-09 06:50:32 +08:00
SPIGOT-1677: Fix attributes with only single underscore.
This commit is contained in:
parent
92439bb231
commit
4d3af9c19b
@ -29,8 +29,10 @@ public class CraftAttributeMap implements Attributable {
|
||||
StringBuilder sb = new StringBuilder(bukkit.toLowerCase());
|
||||
|
||||
sb.setCharAt(first, '.');
|
||||
sb.deleteCharAt(second);
|
||||
sb.setCharAt(second, bukkit.charAt(second + 1));
|
||||
if (second != -1) {
|
||||
sb.deleteCharAt(second);
|
||||
sb.setCharAt(second, bukkit.charAt(second + 1));
|
||||
}
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user