Skip to content

Commit

Permalink
Add debug info for poi command
Browse files Browse the repository at this point in the history
  • Loading branch information
FxMorin committed May 9, 2022
1 parent 6467a05 commit 06f6f2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/carpetfixes/testing/commands/PoiCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import net.minecraft.command.argument.BlockPosArgumentType;
import net.minecraft.server.command.CommandManager;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.server.network.DebugInfoSender;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.text.Text;
import net.minecraft.util.math.BlockPos;
Expand Down Expand Up @@ -54,6 +55,7 @@ private static int executeRemove(CommandContext<ServerCommandSource> context, bo
if (optionalType.isPresent()) {
source.sendFeedback(Text.of("Removed POI - "+optionalType.get()), false);
poiStorage.remove(pos);
DebugInfoSender.sendPoiRemoval(world, pos);
} else {
source.sendFeedback(Text.of("There is no POI at this position!"), false);
}
Expand Down

0 comments on commit 06f6f2b

Please # to comment.