mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
MojangNames # Reduce lambda obscurity
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user