fix: injection remapping issues fixed + additional check
This commit is contained in:
parent
fcf02b68e6
commit
ddffd45a44
@ -122,7 +122,7 @@ dependencies {
|
|||||||
modRuntimeOnly "earth.terrarium.chipped:Chipped-fabric-${project.minecraft_version}:3.1.2"
|
modRuntimeOnly "earth.terrarium.chipped:Chipped-fabric-${project.minecraft_version}:3.1.2"
|
||||||
|
|
||||||
// Axiom for blueprint support
|
// Axiom for blueprint support
|
||||||
modCompileOnly "maven.modrinth:N6n5dqoA:nvx3oDkz"
|
modCompileOnly "maven.modrinth:N6n5dqoA:YxeYxQyz"
|
||||||
modCompileOnly "com.github.moulberry:AxiomClientAPI:1.0.5.3"
|
modCompileOnly "com.github.moulberry:AxiomClientAPI:1.0.5.3"
|
||||||
|
|
||||||
// Fabric API.
|
// Fabric API.
|
||||||
|
@ -9,7 +9,7 @@ loader_version=0.15.11
|
|||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
modrinth_id = jCpoCBpn
|
modrinth_id = jCpoCBpn
|
||||||
mod_version = 1.6
|
mod_version = 1.6.1
|
||||||
maven_group = fr.adrien1106
|
maven_group = fr.adrien1106
|
||||||
archives_base_name = ReFramed
|
archives_base_name = ReFramed
|
||||||
mod_id = reframed
|
mod_id = reframed
|
||||||
|
@ -98,11 +98,10 @@ public abstract class AxiomChunkedBlockRegionMixin implements IAxiomChunkedBlock
|
|||||||
@Inject(
|
@Inject(
|
||||||
method = "getBlockEntity",
|
method = "getBlockEntity",
|
||||||
at = @At("HEAD"),
|
at = @At("HEAD"),
|
||||||
remap = false,
|
|
||||||
cancellable = true
|
cancellable = true
|
||||||
)
|
)
|
||||||
private void onGetBlockEntity(BlockPos pos, CallbackInfoReturnable<BlockEntity> cir) {
|
private void onGetBlockEntity(BlockPos pos, CallbackInfoReturnable<BlockEntity> cir) {
|
||||||
if (inverse_transform == null) return;
|
if (inverse_transform == null || block_entities == null) return;
|
||||||
long key = BlockPos.asLong(
|
long key = BlockPos.asLong(
|
||||||
inverse_transform.transformX(pos.getX(), pos.getY(), pos.getZ()),
|
inverse_transform.transformX(pos.getX(), pos.getY(), pos.getZ()),
|
||||||
inverse_transform.transformY(pos.getX(), pos.getY(), pos.getZ()),
|
inverse_transform.transformY(pos.getX(), pos.getY(), pos.getZ()),
|
||||||
|
@ -21,7 +21,6 @@ public class AxiomMappedBlockAndTintGetterMixin {
|
|||||||
at = @At(
|
at = @At(
|
||||||
value = "RETURN"
|
value = "RETURN"
|
||||||
),
|
),
|
||||||
remap = false,
|
|
||||||
cancellable = true
|
cancellable = true
|
||||||
)
|
)
|
||||||
private void onGetBlockEntity(BlockPos pos, CallbackInfoReturnable<BlockEntity> cir) {
|
private void onGetBlockEntity(BlockPos pos, CallbackInfoReturnable<BlockEntity> cir) {
|
||||||
|
@ -30,8 +30,7 @@ public class AxiomPlacementMixin {
|
|||||||
|
|
||||||
@Inject(
|
@Inject(
|
||||||
method = "startPlacement(Lnet/minecraft/util/math/BlockPos;Lcom/moulberry/axiom/render/regions/ChunkedBlockRegion;Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;Ljava/lang/String;)I",
|
method = "startPlacement(Lnet/minecraft/util/math/BlockPos;Lcom/moulberry/axiom/render/regions/ChunkedBlockRegion;Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;Ljava/lang/String;)I",
|
||||||
at = @At("HEAD"),
|
at = @At("HEAD")
|
||||||
remap = false
|
|
||||||
)
|
)
|
||||||
private void onStartPlacement(BlockPos target, ChunkedBlockRegion region, Long2ObjectMap<CompressedBlockEntity> entities, String description, CallbackInfoReturnable<Integer> cir) {
|
private void onStartPlacement(BlockPos target, ChunkedBlockRegion region, Long2ObjectMap<CompressedBlockEntity> entities, String description, CallbackInfoReturnable<Integer> cir) {
|
||||||
((IAxiomChunkedBlockRegionMixin) region).setTransform(new IntMatrix(), entities);
|
((IAxiomChunkedBlockRegionMixin) region).setTransform(new IntMatrix(), entities);
|
||||||
|
Loading…
Reference in New Issue
Block a user