This commit is contained in:
gnembon committed 2023-03-29 18:44:12 +02:00
1 parent 23b7aa0945
commit 4171f9b784
7 files changed
+31 -9

No files matched your search

@@ -26,11 +26,6 @@ public class BuddingAmethystBlock_movableAmethystMixin extends Block {
super(settings);
}
@Inject(at = @At("HEAD"), method = "getPistonPushReaction(Lnet/minecraft/world/level/block/state/BlockState;)Lnet/minecraft/world/level/material/PushReaction;", cancellable = true)
void getPistonBehavior(BlockState state, CallbackInfoReturnable<PushReaction> cir) {
if (CarpetSettings.movableAmethyst) cir.setReturnValue(PushReaction.NORMAL);
}
@Override
public void playerDestroy(Level world, Player player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) {
super.playerDestroy(world, player, pos, state, blockEntity, stack);