Skip to content

Commit

Permalink
Fix multiblock strcuture checking (#2247)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yefancy authored Oct 26, 2024
1 parent fc799fa commit 8e68f88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.chunk.LevelChunk;

import org.objectweb.asm.Opcodes;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
Expand All @@ -26,9 +25,10 @@ public class ChunkMixin {

// We want to be as quick as possible here
@Inject(method = "setBlockState",
at = @At(value = "INVOKE",
opcode = Opcodes.GETFIELD,
target = "Lnet/minecraft/world/level/block/state/BlockState;onPlace(Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;Z)V"))
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/world/level/block/state/BlockState;hasBlockEntity()Z",
ordinal = 2))
private void gtceu$onChunkChanged(BlockPos pos, BlockState state, boolean isMoving,
CallbackInfoReturnable<BlockState> cir) {
MinecraftServer server = level.getServer();
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion src/main/resources/gtceu.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"ChunkMixin",
"CreeperMixin",
"EntityMixin",
"ForgeHooksMixin",
"IFoliagePlacerTypeAccessor",
"IHolderReferenceAccessor",
"IngredientAccessor",
Expand Down

0 comments on commit 8e68f88

Please sign in to comment.