We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d19255d commit 82e6ceaCopy full SHA for 82e6cea
src/main/scala/li/cil/oc/server/machine/luac/LuaStateFactory.scala
@@ -1,5 +1,6 @@
1
package li.cil.oc.server.machine.luac
2
3
+import java.io.BufferedInputStream
4
import java.io.File
5
import java.io.FileInputStream
6
import java.io.FileOutputStream
@@ -242,8 +243,8 @@ abstract class LuaStateFactory {
242
243
if (tmpLibFile.exists()) {
244
var matching = true
245
try {
- val inCurrent = libraryUrl.openStream()
246
- val inExisting = new FileInputStream(tmpLibFile)
+ val inCurrent = new BufferedInputStream(libraryUrl.openStream())
247
+ val inExisting = new BufferedInputStream(new FileInputStream(tmpLibFile))
248
var inCurrentByte = 0
249
var inExistingByte = 0
250
do {
0 commit comments