Skip to content

Commit

Permalink
Change classicgen to use still lava/water instead of active lava/wate…
Browse files Browse the repository at this point in the history
…r, to match original classic

Also when executing commands from discord/IRC, add a space between service type and username for 'fake player' database ID

i.e. fixes when doing /up from Discord/IRC, that /b in-game doesn't show a space between 'Discord/IRC' and username
  • Loading branch information
UnknownShadow200 committed Mar 12, 2022
1 parent 262cef5 commit bbe5016
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions MCGalaxy/Generator/Classic/ClassicGenerator.cs
Expand Up @@ -232,7 +232,7 @@ public sealed partial class ClassicGenerator {
for (int i = 0; i < numSources; i++) {
int x = rnd.Next(Width), z = rnd.Next(Length);
int y = waterLevel - rnd.Next(1, 3);
FloodFill((y * Length + z) * Width + x, Block.Water);
FloodFill((y * Length + z) * Width + x, Block.StillWater);
}
}

Expand All @@ -243,7 +243,7 @@ public sealed partial class ClassicGenerator {
for (int i = 0; i < numSources; i++) {
int x = rnd.Next(Width), z = rnd.Next(Length);
int y = (int)((waterLevel - 3) * rnd.NextFloat() * rnd.NextFloat());
FloodFill((y * Length + z) * Width + x, Block.Lava);
FloodFill((y * Length + z) * Width + x, Block.StillLava);
}
}

Expand Down
3 changes: 0 additions & 3 deletions MCGalaxy/Modules/Relay/Discord/DiscordBot.cs
Expand Up @@ -19,11 +19,8 @@
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using MCGalaxy.Config;
using MCGalaxy.Events.GroupEvents;
using MCGalaxy.Events.PlayerEvents;
using MCGalaxy.Events.ServerEvents;
using MCGalaxy.Util;

namespace MCGalaxy.Modules.Relay.Discord
Expand Down
2 changes: 1 addition & 1 deletion MCGalaxy/Modules/Relay/RelayBot.cs
Expand Up @@ -516,7 +516,7 @@ protected sealed class RelayPlayer : Player {
Bot = bot;

if (user != null) {
string nick = "(" + bot.RelayName + user.Nick + ")";
string nick = "(" + bot.RelayName + " " + user.Nick + ")";
DatabaseID = NameConverter.InvalidNameID(nick);
}
SuperName = bot.RelayName;
Expand Down

0 comments on commit bbe5016

Please sign in to comment.