Skip to content

Commit

Permalink
Inline things in SburbPredefineCommand.define()
Browse files Browse the repository at this point in the history
  • Loading branch information
kirderf1 committed Apr 13, 2024
1 parent 23defb3 commit be84b40
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ private static int setTitleLand(CommandSourceStack source, ServerPlayer player,
private static int define(CommandSourceStack source, ServerPlayer player, Title title, TerrainLandType terrainLand, TitleLandType titleLand) throws CommandSyntaxException
{
CommandSourceStack silentSource = source.withSuppressedOutput();
setTitle(silentSource, player, title);
setTitleLand(silentSource, player, titleLand);
setTerrainLand(silentSource, player, terrainLand);
PredefineData predefineData = getPredefineData(player);
predefineData.predefineTitle(title);
predefineData.predefineTitleLand(titleLand, silentSource);
predefineData.predefineTerrainLand(terrainLand, silentSource);
source.sendSuccess(() -> Component.translatable(DEFINE, player.getDisplayName()), true);
return 1;
}
Expand Down

0 comments on commit be84b40

Please sign in to comment.