mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
SPIGOT-1677: Fix attributes with only single underscore.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
3583191fec
commit
4ca4351148
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue