mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Fixing some character issue from prior pull requests.
This commit is contained in:
parent
8e3d2e332b
commit
3b5669dbaf
@ -38,7 +38,7 @@ public class ItemHash {
|
||||
StringBuilder builder = new StringBuilder(LENGTH * 2);
|
||||
|
||||
for (char c: item.getHash().toCharArray()) {
|
||||
builder.append('§');
|
||||
builder.append('§');
|
||||
builder.append(c);
|
||||
}
|
||||
|
||||
@ -47,7 +47,7 @@ public class ItemHash {
|
||||
public static SlimefunItem fromString(String input) {
|
||||
if (input == null || input.length() != LENGTH * 2) return null;
|
||||
|
||||
String hex = input.replaceAll("§", "");
|
||||
String hex = input.replaceAll("§", "");
|
||||
|
||||
if (hex.length() != LENGTH || !map.containsKey(hex)) return null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user