mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-09 11:30:13 +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);
|
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<>();
|
List<PacketSnapshot> packetRegistries = new ArrayList<>();
|
||||||
CompoundBinaryTag dimensionTag = dimension1_20_5.getData();
|
CompoundBinaryTag dimensionTag = dimension1_21.getData();
|
||||||
for (String registryType : dimensionTag.keySet()) {
|
for (String registryType : dimensionTag.keySet()) {
|
||||||
CompoundBinaryTag compundRegistryType = dimensionTag.getCompound(registryType);
|
CompoundBinaryTag compoundRegistryType = dimensionTag.getCompound(registryType);
|
||||||
|
|
||||||
PacketRegistryData registryData = new PacketRegistryData();
|
PacketRegistryData registryData = new PacketRegistryData();
|
||||||
registryData.setDimensionRegistry(server.getDimensionRegistry());
|
registryData.setDimensionRegistry(server.getDimensionRegistry());
|
||||||
|
|
||||||
ListBinaryTag values = compundRegistryType.getList("value");
|
ListBinaryTag values = compoundRegistryType.getList("value");
|
||||||
registryData.setMetadataWriter((message, version) -> {
|
registryData.setMetadataWriter((message, version) -> {
|
||||||
message.writeString(registryType);
|
message.writeString(registryType);
|
||||||
|
|
||||||
|
@ -160,10 +160,7 @@ public final class DimensionRegistry {
|
|||||||
|
|
||||||
private String streamToString(InputStream in) throws IOException {
|
private String streamToString(InputStream in) throws IOException {
|
||||||
try (BufferedReader bufReader = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8))) {
|
try (BufferedReader bufReader = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8))) {
|
||||||
String content = bufReader.lines()
|
return bufReader.lines().collect(Collectors.joining("\n"));
|
||||||
.collect(Collectors.joining("\n"));
|
|
||||||
|
|
||||||
return content;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user