More bug fixes

This commit is contained in:
Draycia committed 2020-07-08 05:47:48 -07:00
1 parent 75c6fbe892
commit fbdcf5e2e7
6 files changed
+34 -16

No files matched your search

@@ -147,7 +147,7 @@ public class MySQLUserService extends UserService {
simpleChat.getLogger().info("Saving user channel settings!");
// Save user channel settings
for (Map.Entry<String, UserChannelSettings> entry : user.getChannelSettings().entrySet()) {
for (Map.Entry<String, ? extends UserChannelSettings> entry : user.getChannelSettings().entrySet()) {
UserChannelSettings value = entry.getValue();
String colorString = null;
@@ -25,7 +25,7 @@ public class SimpleChatUser implements ChatUser, ForwardingAudience {
private UUID uuid;
private String selectedChannel = null;
private Map<String, UserChannelSettings> channelSettings = new HashMap<>();
private Map<String, SimpleUserChannelSettings> channelSettings = new HashMap<>();
private List<UUID> ignoredUsers = new ArrayList<>();
private boolean muted = false;
private boolean shadowMuted = false;
@@ -149,7 +149,7 @@ public class SimpleChatUser implements ChatUser, ForwardingAudience {
return channelSettings.computeIfAbsent(channel.getName(), (name) -> new SimpleUserChannelSettings());
}
public Map<String, UserChannelSettings> getChannelSettings() {
public Map<String, ? extends UserChannelSettings> getChannelSettings() {
return channelSettings;
}