|
|
@@ -343,6 +343,28 @@ namespace TechbloxModdingAPI.Tests |
|
|
|
Logging.CommandLog(asset); |
|
|
|
} |
|
|
|
}).Build(); |
|
|
|
|
|
|
|
bool shouldTestGhostBlock = false; |
|
|
|
CommandBuilder.Builder("testGhostBlock") |
|
|
|
.Action(() => |
|
|
|
{ |
|
|
|
if (shouldTestGhostBlock) |
|
|
|
{ |
|
|
|
shouldTestGhostBlock = false; |
|
|
|
Logging.CommandLog("Test disabled"); |
|
|
|
} |
|
|
|
|
|
|
|
shouldTestGhostBlock = true; |
|
|
|
Scheduler.Schedule(new Repeatable(() => |
|
|
|
{ |
|
|
|
var ghostBlock = Player.LocalPlayer.GetGhostBlock(); |
|
|
|
if (ghostBlock == null) return; |
|
|
|
ghostBlock.Position = Player.LocalPlayer.Position + 2; |
|
|
|
ghostBlock.Color = new BlockColor(BlockColors.Lime); |
|
|
|
}, () => shouldTestGhostBlock)); |
|
|
|
Logging.CommandLog("Test enabled"); |
|
|
|
}).Build(); |
|
|
|
|
|
|
|
Client.EnterMenu += (sender, args) => Scheduler.Schedule(new Once(() => Client.Instance.CloseBetaPopup())); |
|
|
|
|
|
|
|
Game.Enter += (sender, args) => |
|
|
|