Skip to content

Commit

Permalink
Ready for release
Browse files Browse the repository at this point in the history
  • Loading branch information
OroArmor committed Mar 29, 2024
1 parent 94b4afe commit 0c1fc6a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ allprojects {
test {
useJUnitPlatform()

// We know we can do this because these tests run in CI
systemProperty("loader.side", "SERVER")

afterEvaluate {
// See: https://github.com/FabricMC/fabric-loader/pull/585
def classPathGroups = loom.mods.stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
import net.fabricmc.fabric.api.biome.v1.BiomeModificationContext;

@Mixin(BiomeModificationContextImpl.class)
public class BiomeModificationContextImplMixin implements BiomeModificationContext { }
public abstract class BiomeModificationContextImplMixin implements BiomeModificationContext { }
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
},
"mixin": [
"quilted_fabric_data_generation_api_v1.mixins.json",
"quilted_fabric_data_generation_api_v1.client.mixins.json"
{
"config": "quilted_fabric_data_generation_api_v1.client.mixins.json",
"environment": "client"
}
],
"access_widener": "quilted_fabric_data_generation_api_v1.accesswidener",
"fabric-api:module-lifecycle": "stable",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ public void onInitialize() {
});

ServerTickEvents.START_WORLD_TICK.register(world -> {
final int worldTicks = tickTracker.computeIfAbsent(world.getRegistryKey(), k -> 0);

if (worldTicks % 200 == 0) { // Log every 200 ticks to verify the tick callback works on the server world
ServerLifecycleTests.LOGGER.info("Started ticking Server World - " + worldTicks);
// Verify we are inside the tick
if (!world.isInBlockTick()) {
throw new AssertionError("Start tick event should be fired while ServerWorld is inside of block tick");
}
});

Expand Down

0 comments on commit 0c1fc6a

Please sign in to comment.