Update to Minecraft 1.20.5

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2024-04-24 01:15:00 +10:00
parent 4deda9501f
commit 65bc2541a3
524 changed files with 7788 additions and 6181 deletions

View File

@@ -23,7 +23,7 @@ public class CraftDataPack implements DataPack {
public CraftDataPack(ResourcePackLoader handler) {
this.handle = handler;
try (IResourcePack iresourcepack = this.handle.resources.openPrimary(this.handle.getId())) {
try (IResourcePack iresourcepack = this.handle.resources.openPrimary(this.handle.location())) {
this.resourcePackInfo = iresourcepack.getMetadataSection(ResourcePackInfo.TYPE);
} catch (IOException e) { // This is already called in NMS then if in NMS not happen is secure this not throw here
throw new RuntimeException(e);