MojangNames # Reduce lambda obscurity

This commit is contained in:
Alexander
2020-12-18 21:05:29 +00:00
parent 356fc50a03
commit 07b06d9e24

View File

@@ -63,7 +63,7 @@ public final class MojangNames {
private static void save(final NameLayerPlugin plugin, final Path file) {
final NBTCompound nbt = new NBTCompound();
PROFILES.forEach(nbt::setUUID);
PROFILES.forEach((name, uuid) -> nbt.setUUID(name, uuid)); // Ignore highlighter
final byte[] data = NBTCompound.toBytes(nbt);
try {
Files.write(file, data,