Undid egyptian bracing

cos gnembon hates egyptians
This commit is contained in:
Ghoulboy authored and GitHub committed 2020-04-21 11:15:55 +02:00
1 parent fcf2a6775c
commit 8d41bfa167
1 file changed
+11 -8
+11 -8
View File
@@ -29,14 +29,17 @@ import java.lang.Math;
import static net.minecraft.server.command.CommandManager.argument;
import static net.minecraft.server.command.CommandManager.literal;
public class DrawCommand {
public static void register(CommandDispatcher<ServerCommandSource> dispatcher) {
LiteralArgumentBuilder<ServerCommandSource> command = literal("draw")
.requires((player) -> SettingsManager.canUseCommand(player, CarpetSettings.commandDraw))
.then(literal("sphere").then(argument("center", BlockPosArgumentType.blockPos())
.then(argument("radius", IntegerArgumentType.integer(1))
.then(argument("block", BlockStateArgumentType.blockState())
.executes((c) -> drawSphere(c.getSource(),
public class DrawCommand
{
public static void register(CommandDispatcher<ServerCommandSource> dispatcher)
{
LiteralArgumentBuilder<ServerCommandSource> command = literal("draw").
requires((player) -> SettingsManager.canUseCommand(player, CarpetSettings.commandDraw)).
then(literal("sphere").
then(argument("center", BlockPosArgumentType.blockPos()).
then(argument("radius", IntegerArgumentType.integer(1)).
then(argument("block", BlockStateArgumentType.blockState()).
executes((c) -> drawSphere(c.getSource(),
BlockPosArgumentType.getBlockPos(c, "center"),
IntegerArgumentType.getInteger(c, "radius"),
BlockStateArgumentType.getBlockState(c, "block"), null))