Add constructor for LevelSave (#197)
This commit is contained in:
parent
fea081e2ae
commit
20e945d166
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user