From 395f258893afe8dd937ef08cfeca6614094fefd2 Mon Sep 17 00:00:00 2001 From: Mykhailo Balaker <83900885+Angry3vilbot@users.noreply.github.com> Date: Sun, 25 Oct 2026 05:53:29 +0000 Subject: [PATCH] Fix spectral block placing a raw meta block (#154) Co-authored-by: Nikolay S. --- .../common/block/SpectralBlock.java | 32 +------------------ 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/block/SpectralBlock.java b/src/main/java/WayofTime/alchemicalWizardry/common/block/SpectralBlock.java index bfae4057..47496f98 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/block/SpectralBlock.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/block/SpectralBlock.java @@ -6,9 +6,6 @@ import net.minecraft.block.Block; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemBlock; -import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.Facing; import net.minecraft.world.IBlockAccess; @@ -72,34 +69,7 @@ public class SpectralBlock extends BlockContainer { } @Override - public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int idk, float what, - float these, float are) { - if (player.isSneaking()) { - return false; - } - - ItemStack playerItem = player.getCurrentEquippedItem(); - - if (playerItem != null) { - if (playerItem.getItem() instanceof ItemBlock) { - world.setBlock( - x, - y, - z, - ((ItemBlock) (playerItem.getItem())).field_150939_a, - playerItem.getItemDamage(), - 3); - - if (!player.capabilities.isCreativeMode) { - playerItem.stackSize--; - } - - return true; - } else { - return false; - } - } - + public boolean isReplaceable(IBlockAccess world, int x, int y, int z) { return true; }