From 5b6fefa8e6abac3aaab37d4c8b039587b97cdca4 Mon Sep 17 00:00:00 2001
From: Li
Date: Wed, 19 Feb 2025 18:03:31 +1300
Subject: [PATCH 1/3] Fix infinite recursion
---
McCrypt/PackData/PEntry.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/McCrypt/PackData/PEntry.cs b/McCrypt/PackData/PEntry.cs
index 829d9f9..0c9aee1 100644
--- a/McCrypt/PackData/PEntry.cs
+++ b/McCrypt/PackData/PEntry.cs
@@ -83,7 +83,7 @@ namespace McCrypt.PackData
{
return Manifest.ReadDependancyUuids(this.ManifestPath);
}
- else if(this.ProductType == "minecraftWorlds")
+ else if(Path.GetFileName(Path.GetDirectoryName(this.FilePath)) == "minecraftWorlds")
{
List uuids = new List();
if(File.Exists(WorldResourcePacksPath)) uuids.AddRange(Manifest.ReadWorldPackList(WorldResourcePacksPath));
From 1c3ccf029a4ff90bcd500b65175e83e84a2cd302 Mon Sep 17 00:00:00 2001
From: Li
Date: Wed, 19 Feb 2025 18:15:41 +1300
Subject: [PATCH 2/3] Change it to use .Type
---
McCrypt/PackData/PEntry.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/McCrypt/PackData/PEntry.cs b/McCrypt/PackData/PEntry.cs
index 0c9aee1..baf3dee 100644
--- a/McCrypt/PackData/PEntry.cs
+++ b/McCrypt/PackData/PEntry.cs
@@ -83,7 +83,7 @@ namespace McCrypt.PackData
{
return Manifest.ReadDependancyUuids(this.ManifestPath);
}
- else if(Path.GetFileName(Path.GetDirectoryName(this.FilePath)) == "minecraftWorlds")
+ else if(this.Type == "minecraftWorlds")
{
List uuids = new List();
if(File.Exists(WorldResourcePacksPath)) uuids.AddRange(Manifest.ReadWorldPackList(WorldResourcePacksPath));
From 17573abed13aaa899c5853bf515df4f246b3412d Mon Sep 17 00:00:00 2001
From: Li
Date: Fri, 2 May 2025 10:22:16 +0000
Subject: [PATCH 3/3] Add LICENSE
---
LICENSE | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100644 LICENSE
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..0b6a94c
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,11 @@
+Copyright 2024 BedrockReverse
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file