mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-09 03:30:12 +02:00
Fixed spelling. Removed unnecessary var
This commit is contained in:
parent
94edb65dac
commit
b99a533e1a
@ -199,16 +199,16 @@ public final class PacketSnapshots {
|
||||
|
||||
PACKET_REGISTRY_DATA = PacketSnapshot.of(packetRegistryData);
|
||||
|
||||
Dimension dimension1_20_5 = server.getDimensionRegistry().getDimension_1_21();
|
||||
Dimension dimension1_21 = server.getDimensionRegistry().getDimension_1_21();
|
||||
List<PacketSnapshot> packetRegistries = new ArrayList<>();
|
||||
CompoundBinaryTag dimensionTag = dimension1_20_5.getData();
|
||||
CompoundBinaryTag dimensionTag = dimension1_21.getData();
|
||||
for (String registryType : dimensionTag.keySet()) {
|
||||
CompoundBinaryTag compundRegistryType = dimensionTag.getCompound(registryType);
|
||||
CompoundBinaryTag compoundRegistryType = dimensionTag.getCompound(registryType);
|
||||
|
||||
PacketRegistryData registryData = new PacketRegistryData();
|
||||
registryData.setDimensionRegistry(server.getDimensionRegistry());
|
||||
|
||||
ListBinaryTag values = compundRegistryType.getList("value");
|
||||
ListBinaryTag values = compoundRegistryType.getList("value");
|
||||
registryData.setMetadataWriter((message, version) -> {
|
||||
message.writeString(registryType);
|
||||
|
||||
|
@ -160,10 +160,7 @@ public final class DimensionRegistry {
|
||||
|
||||
private String streamToString(InputStream in) throws IOException {
|
||||
try (BufferedReader bufReader = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8))) {
|
||||
String content = bufReader.lines()
|
||||
.collect(Collectors.joining("\n"));
|
||||
|
||||
return content;
|
||||
return bufReader.lines().collect(Collectors.joining("\n"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user