Skip to content

Commit 4c55c7b

Browse files
committed
Remove @unique annotation from MixinCreateWorldScreen
1 parent 936c530 commit 4c55c7b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/main/java/io/github/opencubicchunks/cubicchunks/mixin/core/common/client/gui/screens/worldselection/MixinCreateWorldScreen.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,26 @@
77
import net.minecraft.client.gui.screens.worldselection.SwitchGrid;
88
import net.minecraft.network.chat.Component;
99
import org.spongepowered.asm.mixin.Mixin;
10-
import org.spongepowered.asm.mixin.Unique;
1110
import org.spongepowered.asm.mixin.injection.At;
1211
import org.spongepowered.asm.mixin.injection.Inject;
1312
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
1413

1514
@Mixin(targets = "net.minecraft.client.gui.screens.worldselection.CreateWorldScreen$WorldTab", remap = false)
1615
public class MixinCreateWorldScreen {
1716

18-
@Unique private static final Component CUBIC_CHUNKS = Component.translatable("selectWorld.cubicChunks");
17+
private static final Component CUBIC_CHUNKS = Component.translatable("selectWorld.cubicChunks");
1918

20-
@Unique private boolean cc_cubicChunks;
19+
private boolean cc_cubicChunks;
2120

2221
public MixinCreateWorldScreen(boolean ccCubicChunks) {
2322
cc_cubicChunks = ccCubicChunks;
2423
}
2524

26-
@Unique private boolean cc_isCubicChunks() {
25+
private boolean cc_isCubicChunks() {
2726
return cc_cubicChunks;
2827
}
2928

30-
@Unique private void cc_setCubicChunks(boolean cubicChunks) {
29+
private void cc_setCubicChunks(boolean cubicChunks) {
3130
this.cc_cubicChunks = cubicChunks;
3231
CommonConfig config = CubicChunks.config();
3332
config.setGenerateNewWorldsAsCC(cubicChunks);

src/main/java/io/github/opencubicchunks/cubicchunks/mixin/core/common/world/level/MixinLevel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public abstract class MixinLevel implements CubicLevel, MarkableAsCubic, LevelAc
4949

5050
@Shadow public abstract long getDayTime();
5151

52-
@Unique protected boolean cc_isCubic;
52+
protected boolean cc_isCubic;
5353

5454
@Override
5555
public void cc_setCubic() {

0 commit comments

Comments
 (0)