+2
-1
lines changedFilter options
+2
-1
lines changed Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ import javafx.scene.image.Image
18
18
import javafx.scene.image.ImageView
19
19
import javafx.scene.image.WritableImage
20
20
import javafx.scene.paint.Color
21
+
import java.net.URI
21
22
import java.net.URL
22
23
23
24
/**
@@ -425,7 +426,7 @@ class TilesetLoader(private val map: TiledMap, private val mapURL: URL) {
425
426
val image = try {
426
427
val ext = mapURL.toExternalForm().substringBeforeLast("/") + "/"
427
428
428
-
val stream = URL(ext + tilesetImageName).openStream()
429
+
val stream = URI.create(ext + tilesetImageName).toURL().openStream()
429
430
430
431
var img = if (transparentcolor.isEmpty())
431
432
Image(stream)
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4