Skip to content

Commit 0ba86ae

Browse files
committed
Add @unique to inline annotations
1 parent d6e3d1f commit 0ba86ae

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

buildSrc/src/main/java/io/github/opencubicchunks/gradle/FixAnnotationsFormatterStep.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class FixAnnotationsFormatterStep implements FormatterStep {
1212
}
1313

1414
private static final String[] ANNOTATIONS = { "@Shadow", "@Final", "@Mutable", "@Public", "@Override", "@Nullable", "@NotNull", "@Invoker",
15-
"@Accessor", "@Dynamic" };
15+
"@Accessor", "@Dynamic", "@Unique" };
1616

1717
@Override public @Nullable String format(String s, @NotNull File file) {
1818
var outputString = s;

src/main/java/io/github/opencubicchunks/cubicchunks/mixin/core/common/server/network/MixinPlayerChunkSender.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ private void cc_onSendNextChunks(ServerPlayer player, CallbackInfo ci) {
112112
}
113113
}
114114

115-
@Unique
116-
private static void cc_sendCube(ServerGamePacketListenerImpl packetListener, ServerLevel level, LevelCube cube) {
115+
@Unique private static void cc_sendCube(ServerGamePacketListenerImpl packetListener, ServerLevel level, LevelCube cube) {
117116
PacketDistributor.sendToPlayer(packetListener.player, new CCClientboundLevelCubeWithLightPacket(cube));
118117

119118
// ChunkPos chunkpos = chunk.getPos();
@@ -125,8 +124,7 @@ private static void cc_sendCube(ServerGamePacketListenerImpl packetListener, Ser
125124
// net.neoforged.neoforge.event.EventHooks.fireChunkSent(packetListener.player, chunk, level);
126125
}
127126

128-
@Unique
129-
private static void cc_sendChunk(ServerGamePacketListenerImpl packetListener, ServerLevel level, LevelChunk chunk) {
127+
@Unique private static void cc_sendChunk(ServerGamePacketListenerImpl packetListener, ServerLevel level, LevelChunk chunk) {
130128
PacketDistributor.sendToPlayer(packetListener.player, new CCClientboundLevelChunkPacket(chunk.getPos()));
131129

132130
// ChunkPos chunkpos = chunk.getPos();

0 commit comments

Comments
 (0)