mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 22:16:01 +00:00
Fix crash when saving path to file player skin
This commit is contained in:
1 parent
89201e682c
commit
297db34bab
2 files changed
+6
-6
No files matched your search
@@ -153,9 +153,8 @@ public class SelectedEntityPopup {
|
||||
"Skin Texture", "png");
|
||||
future.thenAccept(pathStr -> {
|
||||
if (pathStr != null) {
|
||||
Path path = Path.of(pathStr);
|
||||
editorState.skinOverride.remove(entity.getUUID());
|
||||
editorState.skinOverrideFromFile.put(entity.getUUID(), new FilePlayerSkin(path));
|
||||
editorState.skinOverrideFromFile.put(entity.getUUID(), new FilePlayerSkin(pathStr));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user