mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Remove some unused variables
This commit is contained in:
parent
516cfb8af6
commit
18bbaa053f
@ -66,7 +66,6 @@ namespace MCGalaxy.Blocks.Physics {
|
||||
ushort x, y, z;
|
||||
lvl.IntToPos(C.b, out x, out y, out z);
|
||||
|
||||
int oneY = lvl.Width * lvl.Length;
|
||||
ActivateTDoor(lvl, (ushort)(x - 1), y, z);
|
||||
ActivateTDoor(lvl, (ushort)(x + 1), y, z);
|
||||
ActivateTDoor(lvl, x, (ushort)(y - 1), z);
|
||||
|
@ -697,10 +697,6 @@ namespace MCGalaxy.Commands.CPE {
|
||||
};
|
||||
|
||||
internal static void Help(Player p, string cmd) {
|
||||
// TODO: find a nicer way of doing this
|
||||
string fullCmd = cmd.Replace("lb", "levelblock")
|
||||
.Replace("gb", "globalblock");
|
||||
|
||||
Player.Message(p, "%T{0} add [id] %H- begins creating a new custom block.", cmd);
|
||||
Player.Message(p, "%T{0} copy [source id] [new id] %H- clones a new custom block from an existing custom block.", cmd);
|
||||
Player.Message(p, "%T{0} edit [id] [property] [value] %H- edits the given property of that custom block.", cmd);
|
||||
|
@ -32,7 +32,6 @@ namespace MCGalaxy.Network {
|
||||
volatile bool hookedEvents = false;
|
||||
Dictionary<string, List<string>> userMap = new Dictionary<string, List<string>>();
|
||||
DateTime lastWho, lastOpWho;
|
||||
static char[] trimChars = new char[] { ' ' };
|
||||
IRCPlugin plugin = new IRCPlugin();
|
||||
|
||||
/// <summary> Hooks IRC events so they are handled. </summary>
|
||||
|
@ -99,14 +99,12 @@ namespace MCGalaxy.Tasks {
|
||||
return minTask;
|
||||
}
|
||||
|
||||
SchedulerTask lastTask = null;
|
||||
void DoTask(SchedulerTask task) {
|
||||
try {
|
||||
task.Callback(task);
|
||||
} catch (Exception ex) {
|
||||
MCGalaxy.Logger.LogError(ex);
|
||||
}
|
||||
lastTask = task;
|
||||
|
||||
if (task.Repeating) {
|
||||
task.NextRun = DateTime.UtcNow.Add(task.Delay);
|
||||
|
Loading…
x
Reference in New Issue
Block a user