File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/main/java/me/crafter/mc/lockettepro Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -315,9 +315,11 @@ public static String getSignLineFromUnknown(WrappedChatComponent rawline) {
315
315
}
316
316
317
317
public static String getSignLineFromUnknown (String json ) {
318
- if (!json .contains ("{" )){
318
+ if (json .isEmpty ()) {
319
+ return "" ;
320
+ } else if (!json .contains ("{" )) {
319
321
return trimNbtRawString (json );
320
- }else {
322
+ } else {
321
323
JsonObject line = getJsonObjectOrNull (json );
322
324
if (line == null ) return json ;
323
325
@@ -351,7 +353,7 @@ public static List<Integer> getMinecraftInList(String versionString) {
351
353
return list ;
352
354
}
353
355
354
- public static boolean isMinecraftVersionHigherThan (String version ,String compareTo ) {
356
+ public static boolean isMinecraftVersionHigherThan (String version , String compareTo ) {
355
357
List <Integer > versionInList = getMinecraftInList (version );
356
358
List <Integer > compareToInList = getMinecraftInList (compareTo );
357
359
for (int i = 0 ; i < Math .min (versionInList .size (), compareToInList .size ()); i ++) {
You can’t perform that action at this time.
0 commit comments