From f3a60891cdbb057601f08f220909d48119eb82aa Mon Sep 17 00:00:00 2001 From: 2No2Name <2no2name@web.de> Date: Wed, 4 Dec 2024 01:37:25 +0100 Subject: [PATCH] Add missing access wideners and transformers Fixes crash when placing redstone dust on neoforge --- common/src/main/resources/lithium.accesswidener | 1 + neoforge/src/main/resources/META-INF/accesstransformer.cfg | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/src/main/resources/lithium.accesswidener b/common/src/main/resources/lithium.accesswidener index 6b010881d..78855a45f 100644 --- a/common/src/main/resources/lithium.accesswidener +++ b/common/src/main/resources/lithium.accesswidener @@ -21,5 +21,6 @@ accessible method net/minecraft/world/level/chunk/PalettedContainer$Strategy cal accessible method net/minecraft/world/level/material/Fluid isEmpty ()Z accessible method net/minecraft/world/level/pathfinder/WalkNodeEvaluator getPathTypeFromState (Lnet/minecraft/world/level/BlockGetter;Lnet/minecraft/core/BlockPos;)Lnet/minecraft/world/level/pathfinder/PathType; accessible method net/minecraft/world/level/redstone/RedstoneWireEvaluator getWireSignal (Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;)I +accessible method net/minecraft/world/level/redstone/ExperimentalRedstoneWireEvaluator getWireSignal (Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;)I accessible method net/minecraft/world/phys/shapes/Shapes findBits (DD)I accessible method net/minecraft/world/ticks/SavedTick saveTick (Ljava/lang/String;Lnet/minecraft/core/BlockPos;ILnet/minecraft/world/ticks/TickPriority;)Lnet/minecraft/nbt/CompoundTag; \ No newline at end of file diff --git a/neoforge/src/main/resources/META-INF/accesstransformer.cfg b/neoforge/src/main/resources/META-INF/accesstransformer.cfg index 3ee72710d..5a4a26edd 100644 --- a/neoforge/src/main/resources/META-INF/accesstransformer.cfg +++ b/neoforge/src/main/resources/META-INF/accesstransformer.cfg @@ -15,8 +15,9 @@ public net.minecraft.world.entity.ai.village.poi.PoiSection isValid()Z public net.minecraft.world.level.chunk.PalettedContainer$Configuration (Lnet.minecraft/world/level/chunk/Palette$Factory;I)V public net.minecraft.world.level.chunk.PalettedContainer$Strategy (I)V public net.minecraft.world.level.chunk.PalettedContainer$Strategy calculateBitsForSerialization(Lnet/minecraft/core/IdMap;I)I -#public net.minecraft.world.level.material.Fluid isEmpty()Z public net.minecraft.world.level.pathfinder.WalkNodeEvaluator getPathTypeFromState(Lnet/minecraft/world/level/BlockGetter;Lnet/minecraft/core/BlockPos;)Lnet/minecraft/world/level/pathfinder/PathType; public net.minecraft.world.phys.shapes.Shapes findBits(DD)I public net.minecraft.world.level.material.FlowingFluid$BlockStatePairKey -public net.minecraft.world.ticks.SavedTick saveTick(Ljava/lang/String;Lnet/minecraft/core/BlockPos;ILnet/minecraft/world/ticks/TickPriority;)Lnet/minecraft/nbt/CompoundTag; \ No newline at end of file +public net.minecraft.world.ticks.SavedTick saveTick(Ljava/lang/String;Lnet/minecraft/core/BlockPos;ILnet/minecraft/world/ticks/TickPriority;)Lnet/minecraft/nbt/CompoundTag; +public net.minecraft.world.level.redstone.RedstoneWireEvaluator getWireSignal(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;)I +public net.minecraft.world.level.redstone.ExperimentalRedstoneWireEvaluator getWireSignal(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;)I \ No newline at end of file