Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 14:30:17 +01:00
Updated mappings and added .mcpack support
Dieser Commit ist enthalten in:
Ursprung
9a250c6687
Commit
50fe36edf0
@ -1,23 +1,14 @@
|
|||||||
package org.geysermc.connector.utils;
|
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.JavaHash;
|
||||||
import com.voxelwind.server.jni.hash.NativeHash;
|
import com.voxelwind.server.jni.hash.NativeHash;
|
||||||
import com.voxelwind.server.jni.hash.VoxelwindHash;
|
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 net.md_5.bungee.jni.NativeCode;
|
||||||
import org.geysermc.connector.GeyserConnector;
|
import org.geysermc.connector.GeyserConnector;
|
||||||
import org.geysermc.floodgate.util.EncryptionUtil;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.InputStream;
|
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.zip.ZipFile;
|
import java.util.zip.ZipFile;
|
||||||
|
|
||||||
@ -43,7 +34,7 @@ public class ResourcePack {
|
|||||||
File directory = new File("packs");
|
File directory = new File("packs");
|
||||||
|
|
||||||
for(File file : directory.listFiles()) {
|
for(File file : directory.listFiles()) {
|
||||||
if(file.getName().endsWith(".zip")) {
|
if(file.getName().endsWith(".zip") || file.getName().endsWith(".mcpack")) {
|
||||||
ResourcePack pack = new ResourcePack();
|
ResourcePack pack = new ResourcePack();
|
||||||
|
|
||||||
pack.sha256 = getBytes(hashes.get(file.getName()));
|
pack.sha256 = getBytes(hashes.get(file.getName()));
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 278c73449aeeb4064c7513a68f98a49a5f463f0a
|
Subproject commit 56e4901437dde12458020e81ea76f6087aac7de8
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren