Skip to content

Commit

Permalink
Backport 0.3.2 features to 1.18.2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdElAziz333 committed Jan 18, 2024
1 parent 8d5de05 commit 4d3ef30
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 114 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mapping_version=1.18.2
mod_id=canary
mod_name=Canary
mod_license=LGPL-3.0
mod_version=0.2.9
mod_version=0.3.2
mod_group_id=com.abdelaziz.canary
mod_authors=AbdElAziz
mod_credits=AbdElAziz, JellySquid, 2No2Name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private CanaryConfig() {

this.addMixinRule("block", true);
this.addMixinRule("block.flatten_states", true);
this.addMixinRule("block.hopper", true);
this.addMixinRule("block.hopper", false);
this.addMixinRule("block.hopper.world_edit_compat", true);
this.addMixinRule("block.moving_block_shapes", true);
this.addMixinRule("block.redstone_wire", true);
Expand Down Expand Up @@ -130,7 +130,6 @@ private CanaryConfig() {

this.addMixinRule("shapes", true);
this.addMixinRule("shapes.blockstate_cache", true);
this.addMixinRule("shapes.lazy_shape_context", true);
this.addMixinRule("shapes.optimized_matching", true);
this.addMixinRule("shapes.precompute_shape_arrays", true);
this.addMixinRule("shapes.shape_merging", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@ public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
return false;
}

//For now disable this until running some tests
if (mixinClassName.startsWith(MIXIN_PACKAGE_ROOT + "shapes.lazy_shape_context") && (FMLLoader.getLoadingModList().getModFileById("the_bumblezone") != null)) {
return false;
}

if (mixinClassName.startsWith(MIXIN_PACKAGE_ROOT + "block.hopper") && (FMLLoader.getLoadingModList().getModFileById("easy_villagers") != null)) {
return false;
}

if (mixinClassName.startsWith(MIXIN_PACKAGE_ROOT + "chunk.replace_streams.servercore_compat") && (FMLLoader.getLoadingModList().getModFileById("servercore") != null)) {
return false;
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ public double collideX(AxisCycle cycleDirection, AABB box, double maxDist) {
return maxDist;
}

if (Math.abs(maxDist) < POSITIVE_EPSILON) {
return 0.0D;
}

AxisCycle cycle = cycleDirection.inverse();

Direction.Axis axisX = cycle.cycle(Direction.Axis.X);
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/canary.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@
"math.sine_lut.MthMixin",
"profiler.ServerLevelMixin",
"shapes.blockstate_cache.BlockMixin",
"shapes.lazy_shape_context.EntityCollisionContextMixin",
"shapes.optimized_matching.ShapesMixin",
"shapes.precompute_shape_arrays.CubePointRangeMixin",
"shapes.precompute_shape_arrays.CubeVoxelShapeMixin",
Expand Down

0 comments on commit 4d3ef30

Please sign in to comment.