Order the codec properly please ;)

This commit is contained in:
Mrbysco 2024-03-09 00:37:34 +01:00
parent b261d92bcd
commit f8cc525237

View file

@ -95,8 +95,8 @@ public class LiquidFuelRecipe implements Recipe<Container> {
private static final Codec<LiquidFuelRecipe> CODEC = RecordCodecBuilder.create(
instance -> instance.group(
FluidStack.CODEC.fieldOf("fuel").forGetter(recipe -> recipe.fuel),
Codec.INT.fieldOf("burn_time").forGetter(recipe -> recipe.burnTime),
Codec.INT.fieldOf("total_energy").forGetter(recipe -> recipe.totalEnergy)
Codec.INT.fieldOf("total_energy").forGetter(recipe -> recipe.totalEnergy),
Codec.INT.fieldOf("burn_time").forGetter(recipe -> recipe.burnTime)
)
.apply(instance, LiquidFuelRecipe::new)
);