diff --git a/PCK-Studio/Extensions/PckAssetExtensions.cs b/PCK-Studio/Extensions/PckAssetExtensions.cs
index 841a5a86..08c3f96e 100644
--- a/PCK-Studio/Extensions/PckAssetExtensions.cs
+++ b/PCK-Studio/Extensions/PckAssetExtensions.cs
@@ -18,6 +18,22 @@ namespace PckStudio.Extensions
{
private const string MipMap = "MipMapLevel";
+ internal static PckAsset CreateNewAssetIf(this PckFile pck, bool condition, string filename, PckAssetType filetype, IDataFormatWriter writer)
+ {
+ if (condition)
+ {
+ return pck.CreateNewAsset(filename, filetype, writer);
+ }
+ return default;
+ }
+
+ internal static PckAsset CreateNewAsset(this PckFile pck, string filename, PckAssetType filetype, IDataFormatWriter writer)
+ {
+ PckAsset asset = pck.CreateNewAsset(filename, filetype);
+ asset.SetData(writer);
+ return asset;
+ }
+
internal static Image GetTexture(this PckAsset asset)
{
if (asset.Type != PckAssetType.SkinFile &&
diff --git a/PCK-Studio/Extensions/PckFileExtensions.cs b/PCK-Studio/Extensions/PckFileExtensions.cs
deleted file mode 100644
index 218f52a0..00000000
--- a/PCK-Studio/Extensions/PckFileExtensions.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using OMI.Formats.Pck;
-using OMI.Workers;
-
-namespace PckStudio.Extensions
-{
- internal static class PckFileExtensions
- {
- internal static PckAsset CreateNewAssetIf(this PckFile pck, bool condition, string filename, PckAssetType filetype, IDataFormatWriter writer)
- {
- if (condition)
- {
- return pck.CreateNewAsset(filename, filetype, writer);
- }
- return null;
- }
-
- internal static PckAsset CreateNewAsset(this PckFile pck, string filename, PckAssetType filetype, IDataFormatWriter writer)
- {
- PckAsset asset = pck.CreateNewAsset(filename, filetype);
- asset.SetData(writer);
- return asset;
- }
- }
-}
diff --git a/PCK-Studio/PckStudio.csproj b/PCK-Studio/PckStudio.csproj
index d9c07712..31dd120b 100644
--- a/PCK-Studio/PckStudio.csproj
+++ b/PCK-Studio/PckStudio.csproj
@@ -197,7 +197,6 @@
-
Form