Merge branch 'OC1.3-MC1.7.2' of github.com:MightyPirates/OpenComputers into OC1.3-MC1.7.10

This commit is contained in:
Florian Nücke 2014-07-14 00:14:35 +02:00
commit f48bbc79ec

View File

@ -1,5 +1,7 @@
package li.cil.oc.server.component.robot
import java.util.UUID
import com.mojang.authlib.GameProfile
import cpw.mods.fml.common.ObfuscationReflectionHelper
import cpw.mods.fml.common.eventhandler.Event
@ -36,7 +38,7 @@ object Player {
val name = Settings.get.nameFormat.
replace("$player$", robot.owner).
replace("$random$", randomId)
new GameProfile(null, name)
new GameProfile(UUID.randomUUID().toString, name)
}
}