Skip to content

Commit c3ebeb0

Browse files
25w07a
1 parent 51f25eb commit c3ebeb0

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ val MAVEN_GROUP by extra { "uk.debb" }
1414
val LICENSE by extra { "MPL-2.0" }
1515
val MOD_VERSION by extra { "4.1.0" }
1616

17-
val MINECRAFT_VERSION by extra { "25w06a" }
17+
val MINECRAFT_VERSION by extra { "25w07a" }
1818
val MINECRAFT_VERSION_RANGE_FABRIC by extra { ">=1.21.4" }
1919
val MINECRAFT_VERSION_RANGE_NEOFORGE by extra { "[1.21.4,1.22)" }
2020
val H2_VERSION by extra { "2.3.232" }

common/src/main/java/uk/debb/vanilla_disable/mixin/feature/block/function/MixinBlockStateBase.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
1212
import net.minecraft.core.BlockPos;
1313
import net.minecraft.world.entity.Entity;
14+
import net.minecraft.world.entity.InsideBlockEffectApplier;
1415
import net.minecraft.world.level.Level;
1516
import net.minecraft.world.level.block.Block;
1617
import net.minecraft.world.level.block.state.BlockBehaviour;
@@ -26,10 +27,10 @@ public abstract class MixinBlockStateBase {
2627
public abstract Block getBlock();
2728

2829
@WrapMethod(method = "entityInside")
29-
private void vanillaDisable$entityInside(Level level, BlockPos pos, Entity entity, Operation<Void> original) {
30+
private void vanillaDisable$entityInside(Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier insideBlockEffectApplier, Operation<Void> original) {
3031
String block = DataUtils.getKeyFromBlockRegistry(this.getBlock());
3132
if (SqlManager.getBoolean("blocks", block, "works")) {
32-
original.call(level, pos, entity);
33+
original.call(level, pos, entity, insideBlockEffectApplier);
3334
}
3435
}
3536

common/src/main/java/uk/debb/vanilla_disable/mixin/feature/entity/breeding/MultipleMixinFood.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import net.minecraft.world.entity.animal.goat.Goat;
1717
import net.minecraft.world.entity.animal.horse.AbstractHorse;
1818
import net.minecraft.world.entity.animal.horse.Llama;
19+
import net.minecraft.world.entity.animal.sheep.Sheep;
1920
import net.minecraft.world.entity.animal.sniffer.Sniffer;
2021
import net.minecraft.world.entity.monster.Strider;
2122
import net.minecraft.world.entity.monster.hoglin.Hoglin;

common/src/main/java/uk/debb/vanilla_disable/mixin/feature/misc/MixinServerRecipeBook.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@
88

99
import com.llamalad7.mixinextras.injector.wrapmethod.WrapMethod;
1010
import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
11-
import net.minecraft.nbt.ListTag;
1211
import net.minecraft.resources.ResourceKey;
1312
import net.minecraft.server.level.ServerPlayer;
1413
import net.minecraft.stats.ServerRecipeBook;
1514
import net.minecraft.world.item.crafting.Recipe;
1615
import org.spongepowered.asm.mixin.Mixin;
1716
import uk.debb.vanilla_disable.config.data.SqlManager;
1817

18+
import java.util.List;
1919
import java.util.function.Consumer;
2020
import java.util.function.Predicate;
2121

2222
@Mixin(ServerRecipeBook.class)
2323
public class MixinServerRecipeBook {
2424
@WrapMethod(method = "loadRecipes")
25-
private void vanillaDisable$loadRecipes(ListTag listTag, Consumer<ResourceKey<Recipe<?>>> consumer, Predicate<ResourceKey<Recipe<?>>> predicate, Operation<Void> original) {
25+
private void vanillaDisable$loadRecipes(List<ResourceKey<Recipe<?>>> list, Consumer<ResourceKey<Recipe<?>>> consumer, Predicate<ResourceKey<Recipe<?>>> predicate, Operation<Void> original) {
2626
if (SqlManager.getBoolean("misc", "recipe_book", "enabled")) {
27-
original.call(listTag, consumer, predicate);
27+
original.call(list, consumer, predicate);
2828
}
2929
}
3030

0 commit comments

Comments
 (0)