mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 23:03:01 +00:00
Add util method to get Username from UUID, without nulls
This commit is contained in:
1 parent
5f2501693f
commit
a5e816dddc
6 files changed
+27
-6
No files matched your search
@@ -9,6 +9,7 @@ import java.util.UUID;
|
||||
|
||||
import mekanism.api.Coord4D;
|
||||
import mekanism.common.PacketHandler;
|
||||
import mekanism.common.util.MekanismUtils;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraftforge.common.UsernameCache;
|
||||
|
||||
@@ -118,7 +119,7 @@ public class Frequency
|
||||
{
|
||||
data.add(name);
|
||||
data.add(ownerUUID.toString());
|
||||
data.add(UsernameCache.getLastKnownUsername(ownerUUID));
|
||||
data.add(MekanismUtils.getLastKnownUsername(ownerUUID));
|
||||
data.add(publicFreq);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user