mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-20 04:19:44 +00:00
Thermal Expansion Rework
This commit is contained in:
1 parent
40605f5fa9
commit
22e09c9392
10 files changed
+651
-492
No files matched your search
@@ -17,7 +17,7 @@ public abstract class BaseListModification<T> extends BaseUndoable {
|
||||
|
||||
@Override
|
||||
public boolean canUndo() {
|
||||
if(list == null || recipes.isEmpty() || successful.isEmpty())
|
||||
if(recipes.isEmpty() || successful.isEmpty())
|
||||
return false;
|
||||
|
||||
return true;
|
||||
@@ -33,7 +33,11 @@ public abstract class BaseListModification<T> extends BaseUndoable {
|
||||
sb.append(getRecipeInfo(recipe)).append(", ");
|
||||
}
|
||||
}
|
||||
sb.setLength(sb.length() - 2);
|
||||
|
||||
if(sb.length() > 0 ) {
|
||||
sb.setLength(sb.length() - 2);
|
||||
}
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,11 @@ public abstract class BaseMapModification<K, V> extends BaseUndoable {
|
||||
sb.append(getRecipeInfo(recipe)).append(", ");
|
||||
}
|
||||
}
|
||||
sb.setLength(sb.length() - 2);
|
||||
|
||||
if(sb.length() > 0) {
|
||||
sb.setLength(sb.length() - 2);
|
||||
}
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user