Update to Flywheel 0.6.1

- Make SchematicWorld use plains instead of forest biome
This commit is contained in:
PepperCode1 2022-02-02 21:43:23 -08:00
parent 2a4cfef7a8
commit d71b10cf72
3 changed files with 25 additions and 25 deletions

View file

@ -19,7 +19,7 @@ parchment_version = 2022.01.23
# dependency versions
registrate_version = MC1.18-1.0.21
flywheel_version = 1.18-0.6.0.50
flywheel_version = 1.18-0.6.1.56
jei_minecraft_version = 1.18.1
jei_version = 9.2.1.69

View file

@ -7,6 +7,7 @@ import javax.annotation.Nullable;
import org.apache.commons.lang3.tuple.Pair;
import com.jozufozu.flywheel.api.MaterialManager;
import com.jozufozu.flywheel.api.instance.DynamicInstance;
import com.jozufozu.flywheel.backend.instancing.TaskEngine;
import com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstanceManager;
import com.jozufozu.flywheel.core.virtual.VirtualRenderWorld;
@ -15,7 +16,6 @@ import com.simibubi.create.content.contraptions.components.structureMovement.Mov
import com.simibubi.create.content.contraptions.components.structureMovement.MovementContext;
import net.minecraft.client.Camera;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo;
public class ContraptionInstanceManager extends BlockEntityInstanceManager {
@ -41,8 +41,8 @@ public class ContraptionInstanceManager extends BlockEntityInstanceManager {
}
@Override
protected boolean shouldFrameUpdate(BlockPos worldPos, float lookX, float lookY, float lookZ, int cX, int cY, int cZ) {
return true;
protected void updateInstance(DynamicInstance dyn, float lookX, float lookY, float lookZ, int cX, int cY, int cZ) {
dyn.beginFrame();
}
@Nullable

View file

@ -138,7 +138,7 @@ public class SchematicWorld extends WrappedWorld implements ServerLevelAccessor
@Override
public Biome getBiome(BlockPos pos) {
return ForgeRegistries.BIOMES.getValue(Biomes.FOREST.location());
return ForgeRegistries.BIOMES.getValue(Biomes.PLAINS.location());
}
@Override