Skip to content

Commit 8dca69c

Browse files
Remove unused debug /ctest command
1 parent cce6d96 commit 8dca69c

File tree

2 files changed

+1
-42
lines changed

2 files changed

+1
-42
lines changed

fCraft/Commands/BuildingCommands.cs

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2828,47 +2828,6 @@ static void StaticHandler( Player player, CommandReader cmd ) {
28282828
player.IsRepeatingSelection = true;
28292829
}
28302830
}
2831-
#endregion
2832-
#region cuboid test
2833-
2834-
static readonly CommandDescriptor Cdctest = new CommandDescriptor
2835-
{
2836-
Name = "ctest",
2837-
Permissions = new[] { Permission.Chat },
2838-
Category = CommandCategory.New | CommandCategory.Building,
2839-
Help = "Tells you information about our custom texture pack.",
2840-
Handler = textureHandler
2841-
};
2842-
2843-
static void textureHandler(Player player, CommandReader cmd)
2844-
{
2845-
Zone zone = player.World.Map.Zones.Find("ctest");
2846-
int X = zone.Bounds.XMin;
2847-
int Y = zone.Bounds.YMin;
2848-
int Z = zone.Bounds.ZMin;
2849-
2850-
for (int a = 0; a < zone.Bounds.Width; a++)
2851-
{
2852-
player.WorldMap.SetBlock(X + a, Y, Z, Block.Stone);
2853-
BlockUpdate blockUpdatea = new BlockUpdate(null, new Vector3I(X + a, Y, Z), Block.Stone);
2854-
player.WorldMap.QueueUpdate(blockUpdatea);
2855-
for (int b = 0; b < zone.Bounds.Length; b++)
2856-
{
2857-
player.WorldMap.SetBlock(X + a, Y + b, Z, Block.Stone);
2858-
BlockUpdate blockUpdateb = new BlockUpdate(null, new Vector3I(X + a, Y + b, Z), Block.Stone);
2859-
player.WorldMap.QueueUpdate(blockUpdateb);
2860-
for (int c = 0; c < zone.Bounds.Height; c++)
2861-
{
2862-
player.WorldMap.SetBlock(X + a, Y + b, Z + c, Block.Stone);
2863-
BlockUpdate blockUpdatec = new BlockUpdate(null, new Vector3I(X + a, Y + b, Z + c), Block.Stone);
2864-
player.WorldMap.QueueUpdate(blockUpdatec);
2865-
}
2866-
}
2867-
}
2868-
player.Message("Done.");
2869-
return;
2870-
}
2871-
28722831
#endregion
28732832
#region snake
28742833
private static readonly CommandDescriptor CdSnake = new CommandDescriptor {

fCraft/MapConversion/MapRaw.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.IO;
44

55
namespace fCraft.MapConversion {
6-
/// <summary> D3 map conversion implementation, for converting D3 map format into fCraft's default map format. </summary>
6+
/// <summary> Saves the raw blocks of a map to disc, uncompressed. Does not save dimensions. </summary>
77
public sealed class MapRaw : IMapExporter {
88

99
public string ServerName {

0 commit comments

Comments
 (0)