SPIGOT-1677: Fix attributes with only single underscore.
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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, '.');
|
||||||
sb.deleteCharAt(second);
|
if (second != -1) {
|
||||||
sb.setCharAt(second, bukkit.charAt(second + 1));
|
sb.deleteCharAt(second);
|
||||||
|
sb.setCharAt(second, bukkit.charAt(second + 1));
|
||||||
|
}
|
||||||
|
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user