Skip to content

Commit 22679ad

Browse files
committed
fix: slight renames and unregistered packets
1 parent 2459d40 commit 22679ad

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/main/java/com/mcdiamondfire/proto/ModAPIMessages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public final class ModAPIMessages {
2626

2727
// Plot.
2828
registerMessage(S2CPlotInfo.class, "s2c_plot_info");
29-
registerMessage(S2CCodeTemplate.class, "s2c_code_template");
30-
registerMessage(S2CPlaceTemplateResult.class, "s2c_place_template_result");
29+
registerMessage(S2CCodeOperationResult.class, "s2c_code_operation_result");
30+
registerMessage(S2CMultiCodeOperationsResult.class, "s2c_multi_code_operations_result");
3131

3232
// Player.
3333
registerMessage(S2CPlayerCurrency.class, "s2c_player_currency");

src/main/proto/data_type.proto

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ message Template {
3434
}
3535

3636
// Represents a line starter type.
37-
enum LineStarterType {
38-
PLAYER_EVENT = 0; // A Player Event.
39-
ENTITY_EVENT = 1; // An Entity Event.
37+
enum LineStarterBlock {
38+
EVENT = 0; // A Player / Entity Event.
4039
FUNCTION = 2; // A Function.
4140
PROCESS = 3; // A Process.
4241
}

src/main/proto/serverbound_plot.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ message GetByLocationOperation {
1515
// requires the player to have developer permissions on the plot,
1616
// and that the code block exists.
1717
message GetByBlockOperation {
18-
LineStarterType type = 1; // The type of line starter of the code block to get the template for.
18+
LineStarterBlock type = 1; // The type of line starter of the code block to get the template for.
1919
string action = 2; // The sign action name of the code block to get the template for.
2020
}
2121

@@ -39,7 +39,7 @@ message DeleteByLocationOperation {
3939
// requires the player to have developer permissions on the plot,
4040
// and that the code block exists.
4141
message DeleteByBlockOperation {
42-
LineStarterType type = 1; // The type of line starter of the code block to delete.
42+
LineStarterBlock type = 1; // The type of line starter of the code block to delete.
4343
string action = 2; // The sign action name of the code block to delete.
4444
}
4545

@@ -57,7 +57,7 @@ message ReplaceByLocationOperation {
5757
// and that the code block exists,
5858
// and that the template will not override any blocks nor exit the plot bounds (except for the blocks being replaced).
5959
message ReplaceByBlockOperation {
60-
LineStarterType type = 1; // The type of line starter of the code block to replace.
60+
LineStarterBlock type = 1; // The type of line starter of the code block to replace.
6161
string action = 2; // The sign action name of the code block to replace.
6262
Template template = 3; // The template to replace the code block with.
6363
}

0 commit comments

Comments
 (0)