mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-10 14:26:45 +00:00
Removed TEMPORARY guest policy. Fixes #25
This commit is contained in:
parent
aaeb18068d
commit
04c837d692
@ -174,7 +174,7 @@ public class GameUniverse {
|
||||
return users.get(username);
|
||||
}
|
||||
|
||||
public User getOrCreateUser(String username, boolean makeControlledUnit) {
|
||||
public User getOrCreateUser(String username, boolean makeControllableUnit) {
|
||||
User user = getUser(username);
|
||||
|
||||
if (user != null) {
|
||||
@ -184,10 +184,9 @@ public class GameUniverse {
|
||||
LogManager.LOGGER.info("Creating new User: " + username);
|
||||
|
||||
try {
|
||||
if (makeControlledUnit) {
|
||||
if (makeControllableUnit) {
|
||||
user = new User();
|
||||
|
||||
|
||||
} else {
|
||||
user = new User(null);
|
||||
}
|
||||
|
@ -9,8 +9,4 @@ public enum GuestPolicy {
|
||||
* Block guests completely
|
||||
*/
|
||||
BLOCK,
|
||||
/**
|
||||
* Allow guests, can have Cubot, but it is not saved in database
|
||||
*/
|
||||
TEMPORARY
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user