- 89
- 2
Некорректные теги
У меня мод и он предмет выкидывает, но не ложит в инвентарь, вот строчка.
Java:
@Override
public void breakBlock(World worldIn, @Nonnull BlockPos pos, @Nonnull IBlockState state) {
TileEntity tileentity = worldIn.getTileEntity(pos);
if (tileentity instanceof IInventory) {
InventoryHelper.dropInventoryItems(worldIn, pos, (IInventory) tileentity);
worldIn.updateComparatorOutputLevel(pos, this);
}
super.breakBlock(worldIn, pos, state);
}
Последнее редактирование модератором: