diff --git a/src/tools/trackeditor/gui/properties/GraphicObjectProperties.java b/src/tools/trackeditor/gui/properties/GraphicObjectProperties.java index c6d617824..2b34e0b85 100644 --- a/src/tools/trackeditor/gui/properties/GraphicObjectProperties.java +++ b/src/tools/trackeditor/gui/properties/GraphicObjectProperties.java @@ -593,7 +593,7 @@ public class GraphicObjectProperties extends PropertyPanel graphicObjects.lastElement().setHeight(datum.height); } - if (datum.useMaterial != null && !datum.useMaterial.isBlank()) + if (datum.useMaterial != null && !datum.useMaterial.trim().isEmpty()) { graphicObjects.lastElement().setUseMaterial(datum.useMaterial); } diff --git a/src/tools/trackeditor/utils/ac3d/Ac3d.java b/src/tools/trackeditor/utils/ac3d/Ac3d.java index a4fcc4773..96c9dda9d 100644 --- a/src/tools/trackeditor/utils/ac3d/Ac3d.java +++ b/src/tools/trackeditor/utils/ac3d/Ac3d.java @@ -300,7 +300,7 @@ public class Ac3d { while (readLine()) { - if (tokens.length == 0 || (tokens.length == 1 && tokens[0].isBlank())) + if (tokens.length == 0 || (tokens.length == 1 && tokens[0].trim().isEmpty())) { continue; }