|
1 | 1 | package github.kasuminova.novaeng.common.handler; |
2 | 2 |
|
3 | 3 | import blusunrize.immersiveengineering.api.tool.ExcavatorHandler; |
4 | | -import blusunrize.immersiveengineering.common.blocks.metal.BlockMetalDevice1; |
| 4 | +import blusunrize.immersiveengineering.common.IEContent; |
5 | 5 | import blusunrize.immersiveengineering.common.blocks.metal.BlockTypes_MetalDevice1; |
6 | 6 | import blusunrize.immersiveengineering.common.blocks.metal.TileEntitySampleDrill; |
7 | 7 | import codechicken.lib.util.ItemUtils; |
@@ -40,7 +40,7 @@ public class IEHandler { |
40 | 40 | }; |
41 | 41 |
|
42 | 42 | private static void giveCoresample(PlayerInteractEvent.RightClickItem event, World world, BlockPos eventpos, EntityPlayer player, ItemStack item) { |
43 | | - world.setBlockState(eventpos, BlockMetalDevice1.getStateById(BlockTypes_MetalDevice1.SAMPLE_DRILL.getMeta())); |
| 43 | + world.setBlockState(eventpos, IEContent.blockMetalDevice1.getStateFromMeta(BlockTypes_MetalDevice1.SAMPLE_DRILL.getMeta())); |
44 | 44 | val drill = (TileEntitySampleDrill) world.getTileEntity(eventpos); |
45 | 45 | val worldInfo = ExcavatorHandler.getMineralWorldInfo( |
46 | 46 | world, |
@@ -87,6 +87,7 @@ public void onPlayerRightClickItem(PlayerInteractEvent.RightClickItem event) { |
87 | 87 | val eventpos = new BlockPos(event.getPos().getX(), 250, event.getPos().getZ()); |
88 | 88 | if (tky.equals(item.getItem().getRegistryName())) { |
89 | 89 | giveCoresample(event, world, eventpos, player, item); |
| 90 | + item.shrink(1); |
90 | 91 | } else if (scanner.equals(item.getItem().getRegistryName())) { |
91 | 92 | var nbt = item.getTagCompound(); |
92 | 93 | var mode = nbt.getByte("mode"); |
|
0 commit comments