Add constructor for LevelSave (#197)

This commit is contained in:
IzzelAliz 2021-03-10 15:14:14 +08:00
parent fea081e2ae
commit 20e945d166
2 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,15 @@ public class SaveFormat_LevelSaveMixin implements SaveFormatBridge.LevelSaveBrid
private RegistryKey<Dimension> dimensionType;
public void arclight$constructor(SaveFormat saveFormat, String saveName) {
throw new RuntimeException();
}
public void arclight$constructor(SaveFormat saveFormat, String saveName, RegistryKey<Dimension> dimensionType) {
arclight$constructor(saveFormat, saveName);
this.dimensionType = dimensionType;
}
@Override
public void bridge$setDimType(RegistryKey<Dimension> typeKey) {
this.dimensionType = typeKey;

View File

@ -133,6 +133,7 @@ public class ArclightMixinPlugin implements IMixinConfigPlugin {
.add("net.minecraft.world.dimension.DimensionType")
.add("net.minecraft.util.text.Color")
.add("net.minecraft.command.Commands")
.add("net.minecraft.world.storage.SaveFormat$LevelSave")
.build();
@Override