forked from GeyserMC/Geyser
Updated mappings and added .mcpack support
This commit is contained in:
parent
9a250c6687
commit
50fe36edf0
2 changed files with 2 additions and 11 deletions
|
@ -1,23 +1,14 @@
|
|||
package org.geysermc.connector.utils;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.voxelwind.server.jni.hash.JavaHash;
|
||||
import com.voxelwind.server.jni.hash.NativeHash;
|
||||
import com.voxelwind.server.jni.hash.VoxelwindHash;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import io.netty.buffer.PooledByteBufAllocator;
|
||||
import net.md_5.bungee.jni.NativeCode;
|
||||
import org.geysermc.connector.GeyserConnector;
|
||||
import org.geysermc.floodgate.util.EncryptionUtil;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.zip.ZipFile;
|
||||
|
||||
|
@ -43,7 +34,7 @@ public class ResourcePack {
|
|||
File directory = new File("packs");
|
||||
|
||||
for(File file : directory.listFiles()) {
|
||||
if(file.getName().endsWith(".zip")) {
|
||||
if(file.getName().endsWith(".zip") || file.getName().endsWith(".mcpack")) {
|
||||
ResourcePack pack = new ResourcePack();
|
||||
|
||||
pack.sha256 = getBytes(hashes.get(file.getName()));
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 278c73449aeeb4064c7513a68f98a49a5f463f0a
|
||||
Subproject commit 56e4901437dde12458020e81ea76f6087aac7de8
|
Loading…
Reference in a new issue