mirror of
https://github.com/GTNewHorizons/bdlib.git
synced 2026-11-21 20:52:22 +00:00
Java 6 doesn't have System.lineSeparator *facepalm*
This commit is contained in:
1 parent
1003aa1d6a
commit
0929ba9278
2 files changed
+4
-2
No files matched your search
@@ -26,8 +26,8 @@ object ApiReporter extends ICrashCallable {
|
||||
mod.getSource
|
||||
else
|
||||
mod.getSource.getName
|
||||
)).mkString(System.lineSeparator())
|
||||
)).mkString(Misc.lineSeparator)
|
||||
}
|
||||
override def getLabel = "List of loaded APIs"
|
||||
override def call() = System.lineSeparator() + APIs
|
||||
override def call() = Misc.lineSeparator + APIs
|
||||
}
|
||||
@@ -127,5 +127,7 @@ object Misc {
|
||||
|
||||
def getFluidColor(f: Fluid): Int =
|
||||
if (f != null) getFluidColor(new FluidStack(f, 1)) else 0xFFFFFF
|
||||
|
||||
lazy val lineSeparator = System.getProperty("line.separator")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user